Is it sampling or is it recording every instruction executed?
Does it just capture the executing function or does it also have the line number?
Is it sampling or is it recording every instruction executed?
Does it just capture the executing function or does it also have the line number?
Taken from this article from Functionality heading -
"Cachegrind collects flat profile data: event counts (data reads, cache misses, etc.) are attributed directly to the function they occurred in. This cost attribution mechanism is called self or exclusive attribution.
Callgrind extends this functionality by propagating costs across function call boundaries. If function foo calls bar, the costs from bar are added into foo's costs. When applied to the program as a whole, this builds up a picture of so called inclusive costs, that is, where the cost of each function includes the costs of all functions it called, directly or indirectly."