What are the time measurements shown next to curly braces in Very Sleepy profiler?

I use Very Sleepy for the profile of some C ++ code, and I notice that in the Source view, where it shows a red line, by the time measurement of time, there is always a measurement on lines that have only the method of opening or closing the curly bracket, in in some cases they were quite high compared to other lines of code in a function.

My initial assumption shows the time taken to push the method parameters onto the stack to open the curly bracket, and the time taken to fold the stack for the closing curly bracket. It's true?

+6
source share
1 answer

I received an answer to this from Richard Mitton ( @grumpydev ), accompanying Very Sleepy, on Twitter: "Most likely, the function was optimized, so the line number is no longer mapped to the code, i.e. it is reset all the time at the beginning, but not distributed in the course of the function.

+4
source

Source: https://habr.com/ru/post/897222/


All Articles