p*u 发帖数: 2454 | 1 i got a function which is called by many others, now i want to
know who the callers are at runtime. How can I do this in C++, say
print out the caller functions names? thanks. | P*****f 发帖数: 2272 | 2 also can try some debuger api
you may get some hint | p*u 发帖数: 2454 | 3 gprof cannot profile kernel, i used oprof but there's no call graph, sigh.
usage | k**m 发帖数: 222 | 4 Many peformance tools (profiler) can do this. For example, gprof from GNU,
Vtune from Intel, and Sun's Performance Analyzer. Check their manual for usage
.
You problem seems to be a typical call-graph profiling problem. C++ may be
tricky because the function names might be changed by compilers to some
strange ones.
【在 p*u 的大作中提到】 : i got a function which is called by many others, now i want to : know who the callers are at runtime. How can I do this in C++, say : print out the caller functions names? thanks.
| p*u 发帖数: 2454 | 5 thanks a lot, i will give it a try and let you know what i get. |
|