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
Post a Comment