OK, I suppose your real goal is to make your code as fast as possible, right?
It is natural to assume that you are doing this by figuring out how long your functions have been running, but there is another way to look at it.
Think about how your program works, it tracks a call tree that looks like a real tree outside of your window. A line is similar to a function mainand where any branch comes off from it, like a call to another function.
Suppose that each βleafβ takes a certain amount of time, and what you want to do is trim the tree to remove as many leaves as possible.
- . - , . , , .
- , 10, . , , . , , , .
. , . . ( , ) . , 40%, , , .
, , . , , "". , .