Fwd: gprof symspec??
Ken
xie.kenneth@gmail.com
Wed Aug 19 13:12:00 GMT 2009
Hello all, I'm not sure if I can ask a gprof question here?
I am profiling a storage engine of mysql. I compiled and run my test
with gprof and got my gmon.out file.
Then I was trying to get informaiton on some functions and it's
children only, which function is myeng::Table::getNext.
I rtfmed and got this which seems to be what I need:
"-q[symspec]"
"--graph[=symspec]"
The -q option causes "gprof" to print the call graph
analysis. If symspec is specified,
print call graph only
for matching symbols and their children.
So I tried the following:
$ gprof -b --graph=getNext libexec/mysqld var/gmon.out > result
$ gprof -b --graph=.*getNext libexec/mysqld var/gmon.out > result
$ gprof -b --graph=myeng::Table::getNext libexec/mysqld var/gmon.out > result
None of them worked! The result is about all mysql functions, not just
what I want alone.
I wonder what does this "symspec" mean? How could I use it to get job done?
Best wishes,
Kenneth Tse
Email: xie.kenneth@gmail.com
Twitter: kenneth_tse
More information about the Binutils
mailing list