This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fwd: gprof symspec??


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]