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
Post a Comment