Created
September 23, 2015 13:10
-
-
Save lukego/5081087c3e6a70b92df3 to your computer and use it in GitHub Desktop.
counter2 module jit.p vs traceprof
This file contains 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 ./snabb snsh -jdump=+rs,x -jp=vi1 counter2.lua | |
100% TRACE 3 ->loop counter2.lua:5 | |
$ sudo ./snabb snsh -jdump=+rs,x -jtprof counter2.lua | |
traceprof report (recorded 10567/10567 samples): | |
62% TRACE 3 counter2.lua:5 | |
26% TRACE 4 (3/5) counter2.lua:9 | |
10% TRACE 3:LOOP counter2.lua:5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is an updated version that includes cross-trace linkage in traceprof too:
I am really happy with this output. I think it clearly shows that time is being burned in rerunning the initial (non-loop) part of trace 3 due to repeated entries from trace 4.