diff options
author | Johannes M Dieterich <jmd@FreeBSD.org> | 2017-04-01 17:58:59 +0000 |
---|---|---|
committer | Johannes M Dieterich <jmd@FreeBSD.org> | 2017-04-01 17:58:59 +0000 |
commit | a77376a1fe451c084c5ec703fca0433d3651b578 (patch) | |
tree | 4abd33c67d210df1e8d6d75aa4eb516b942b13c4 /java/lightweight-java-profiler/files/patch-src_display.cc | |
parent | Add DOCS OPTION (diff) |
new port: java/lightweight-java-profiler
A port of the lightweight-java-profiler (ljp). ljp acts as a bare-bones agentlib to produce profiling stacks that can be digested, e.g., by Brendan Gregg's flamegraph scripts.
Reviewed by: mat, swills (mentor)
Approved by: swills (mentor)
Differential Revision: https://reviews.freebsd.org/D10194
Diffstat (limited to 'java/lightweight-java-profiler/files/patch-src_display.cc')
-rw-r--r-- | java/lightweight-java-profiler/files/patch-src_display.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/java/lightweight-java-profiler/files/patch-src_display.cc b/java/lightweight-java-profiler/files/patch-src_display.cc new file mode 100644 index 000000000000..b01d0400482b --- /dev/null +++ b/java/lightweight-java-profiler/files/patch-src_display.cc @@ -0,0 +1,11 @@ +--- src/display.cc.orig 2015-04-15 08:00:23 UTC ++++ src/display.cc +@@ -20,7 +20,7 @@ void StackTracesPrinter::PrintStackTrace + if (traces[i].count != 0) { + total += traces[i].count; + count++; +- fprintf(file_, "%"PRIdPTR" ", traces[i].count); ++ fprintf(file_, "%" PRIdPTR" ", traces[i].count); + PrintStackTrace(&traces[i]); + fprintf(file_, "\n"); + } |