Created
August 8, 2025 19:24
-
-
Save LuxXx/109a389be524aea2ae1ff2fcdd9fb6ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo bpftrace -e 'tracepoint:syscalls:sys_enter_sendto /comm == "yt-dlp"/ { @sent_bytes = sum(args->len); } tracepoint:syscalls:sys_exit_recvfrom /comm == "yt-dlp"/ { if (args->ret > 0) { @received_bytes = sum(args->ret); } }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment