c++ - callgrind profile output with backtrace? -
is possible traces profiling output callgrind?
if is, able explain how that's done?
[update] terminology. backtrace/callstack called , reside when using kcachegrind view callgrind profiling results?
when launch kcachegrind first time, have 3 areas : @ left, have dockwidget entitled "flat profile", there list of functions sorted percentage of cost in application, including sub-calls. (that's why main usualy cost 100%). in bottom-right area, have dockwidget have "call graph" tab, there here have tree of calls, , maybe looking ;)
but if want backtrace @ specific point, more informations context, advise use gdb breakpoint here, , continue execution until reached context want. profiling used locate function cost in application, , see if can optimize it.
Comments
Post a Comment