-
Notifications
You must be signed in to change notification settings - Fork 145
Using the profiling tools
Karsten Poeck edited this page May 10, 2020
·
9 revisions
Profiling tools are in clasp/src/profile
-
git clone https://github.com/brendangregg/FlameGraph
in<path-to-flamegraph>
export FLAME_GRAPH_HOME=<path-to-flamegraph>/FlameGraph
- find out the of the clasp you wan't to meter with e.g. :
ps
- Execute
./do-flame <pid>
That leaves a .svg file in /tmp/ - View with your browser
./do-dtrace <pid>
Generates the file /tmp/out-symbol-.user_stacks
./count-calls -i /tmp/out-symbol-<pid>.user_stacks -o /tmp/out.txt
Generates a sorted list of function names and how many of the backtraces contained that function name.
./prune -i /tmp/out-symbol-<pid>.user_stacks -o /tmp/out-pruned.user_stacks -s <PART-OF-FUNCTION-NAME>
Generates backtraces that start with the frame .
./flame /tmp/out-pruned.user_stacks
Generates /tmp/out-flame.svg - view this in chrome