Sgenmi / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CPU-Profiler, Two Way profiling #554

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I try to use CPU-Profiler, this 
page(http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html) told 
me two different ways to profile my program.

Should I pick up one of them to profile my program? or have to follow two way 
both?

I does not insert the API(ProfilerStart() and ProfilerStop(), Way 2), and I get 
nothing. 

Original issue reported on code.google.com by jackzzj...@gmail.com on 24 Jul 2013 at 9:15

GoogleCodeExporter commented 9 years ago
Your page is out of date. The newer is following:
http://gperftools.googlecode.com/svn/trunk/doc/cpuprofile.html

There are three ways now.
You can take one of three.
In Way 1, You can link libprofiler.so or not.But in way 2(newer is way 3),you 
must link libprofiler.so since you include <gperftools/profiler.h>.

Original comment by xiaoyur...@gmail.com on 25 Jul 2013 at 1:09

GoogleCodeExporter commented 9 years ago
indeed. up-to-date page is in gperftools project

Original comment by alkondratenko on 26 Jul 2013 at 6:33