ports/java/lightweight-java-profiler/files/patch-src_display.cc
Johannes M Dieterich a77376a1fe 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
2017-04-01 17:58:59 +00:00

11 lines
391 B
C++

--- 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");
}