Skip to content

Instantly share code, notes, and snippets.

@timo
Created July 27, 2020 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timo/498426619ac7d3f97684520f69cd3f71 to your computer and use it in GitHub Desktop.
Save timo/498426619ac7d3f97684520f69cd3f71 to your computer and use it in GitHub Desktop.
some dtrace example output
timo@schmand ~/p/moarvm (master)> sudo /usr/share/bcc/tools/trace -p (pgrep -n perl6) -U -t 'u:/home/timo/perl6/install/lib/libmoar.so:syncfile_openfh "%s %d", arg1, arg2' 'u:/home/timo/perl6/install/lib/libmoar.so:proc_spawn_setup "%d", arg1' 'u:/home/timo/perl6/install/lib/libmoar.so:proc_on_exit "%d", arg1'
[sudo] password for timo:
TIME PID TID COMM FUNC -
7.928288 1283696 1283696 perl6 syncfile_openfh b'bin/moar-ha' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
8.131199 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/META6.json' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
8.144013 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/CACHEDIR.TAG' 577
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
8.148874 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 66
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
8.162334 1283696 1283907 async io thread proc_spawn_setup -603976864
b'spawn_setup+0x4a1 [libmoar.so]'
b'[unknown]'
17.12126 1283696 1283907 async io thread proc_on_exit -603976864
b'async_spawn_on_exit+0x166 [libmoar.so]'
b'[unknown]'
17.12851 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/lib/App/MoarVM/HeapAnalyzer/Shell.p' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.12871 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.13237 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 577
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.13598 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/bin/moar-ha' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.14502 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/lib/App/MoarVM/HeapAnalyzer/LogTime' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.14536 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/lib/App/MoarVM/HeapAnalyzer/Model.p' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.14616 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/lib/App/MoarVM/HeapAnalyzer/Parser.' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.14661 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/lib/App/MoarVM/HeapAnalyzer/Shell.p' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.14720 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 577
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.14801 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.14819 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.14950 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.14991 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15071 1283696 1283696 perl6 syncfile_openfh b'/home/timo/.raku/precomp/2B09994D481EE8E9B490546435BF537A0B705782/CF/CF9890C71AE' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15130 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15176 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15228 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15304 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15378 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/install/share/perl6/core/precomp/2B09994D481EE8E9B490546435BF53' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15461 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/install/share/perl6/core/precomp/2B09994D481EE8E9B490546435BF53' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15520 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/install/share/perl6/core/precomp/2B09994D481EE8E9B490546435BF53' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15577 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/install/share/perl6/core/precomp/2B09994D481EE8E9B490546435BF53' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15734 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15865 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.15940 1283696 1283696 perl6 syncfile_openfh b'/home/timo/perl6/ecosystem/moar-heapanalyzer/.precomp/2B09994D481EE8E9B490546435' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.41757 1283696 1283696 perl6 syncfile_openfh b'/tmp/a.mvmheap' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
17.41902 1283696 1283696 perl6 syncfile_openfh b'/tmp/a.mvmheap' 0
b'MVM_file_open_fh+0xfb [libmoar.so]'
b'[unknown]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment