This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fwd: gprof symspec??
- From: Ken <xie dot kenneth at gmail dot com>
- To: binutils <binutils at sourceware dot org>
- Date: Wed, 19 Aug 2009 16:59:52 +0800
- Subject: Fwd: gprof symspec??
- References: <8af39e160908190155v16a14c56o3053cec9a19707e0@mail.gmail.com>
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