Closed GoogleCodeExporter closed 9 years ago
You seemingly invoke pprof for heapcheck dump rather than cpu profile.
try something like pprof --text ./a.out out.ptof (or --web)
Original comment by alkondratenko
on 24 Dec 2014 at 8:15
My code is just a sample one to print a couple of strings:
gprof/examples# gcc a.c -lprofiler -Wl,--no-as-needed -lprofiler -Wl,--as-needed
gprof/examples# CPUPROFILE=out.ptof ./a.out
Hi
Hi
Hi
Hi
Hi
Hi
Hi
Hi
Hi
Hi
Hi
Hi
PROFILE: interrupts/evictions/bytes = 0/0/64
gprof/examples# pprof --text ./a.out out.ptof
Using local file ./a.out.
Using local file out.ptof.
gprof/examples#
Still nothing comes out
gprof/examples# pprof --web ./a.out out.ptof
Using local file ./a.out.
Using local file out.ptof.
No nodes to print
Original comment by satyapra...@gmail.com
on 24 Dec 2014 at 8:36
Your program might be running too quickly to produce any profiling samples. You
will need at least few seconds of samples to have near-meaningful profile. You
can also look at cpu profiling frequency knob.
Original comment by alkondratenko
on 24 Dec 2014 at 5:15
[deleted comment]
I'm going to close this bug as "cannot reproduce" due to my comment above that
your program likely runs too quickly to gather any profiling samples.
If that is not the case, please reopen. And consider uploading some test
program that reproduce that problem so that I can investigate.
Thanks.
Original comment by alkondratenko
on 7 Feb 2015 at 7:07
Original issue reported on code.google.com by
satyapra...@gmail.com
on 24 Dec 2014 at 7:59