c++ - How do I profile code beyond per-function level? -


afaik profilers can tell how time spent in each function. since c++ compilers tend inline code aggressively , functions not short it's useful know more details - how time each construct consumes.

how can achieved except restructuring code smaller functions?

if use sampling profiler (e.g. zoom or shark), rather instrumented profiler (e.g. gprof) can finer grained profiles, down statement , instruction level.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -