linux - Count function calls by name or signature. Gcc, C++ -


i have c++ written package. linux, gcc. can modify compilation process (change makefile, flags, etc.), can not change c++ source code.

one runs package different parameters, job , exits.

how count:
1) number of calls of function specific name?
2) number of calls of functions specific signature?
3) number of calls of functions 1 of parameters of specific type i.e. std::string (type specified signature)?
4) , extra number of calls of functions of stl objects, i.e. std::string copy constructor?

(i mean count number of calls during run. )

i thought gdb, found tough (1) , have not found how (2)-(4) @ all.


all acceptable answers write here humanity.

you can try running dtrace under linux. it's great tool trying accomplish.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -