AFAIK profilers can only indicate how much time is spent on each function. But since C ++ compilers tend to aggressively embed code, and also some functions are not so short, it is often useful to know more detailed information - how much time each construct consumes.
How can this be achieved besides restructuring code for smaller functions?
c ++ performance optimization profiling
sharptooth
source share