Showing posts with label truss. Show all posts
Showing posts with label truss. Show all posts

Monday, July 18, 2011

gprof enabling

  • Add the ”-pg” option to every .o compilation + to the exe also.
  • Link with static versions of libraries that need being profiled.

Example given:

cd /vob/signalware/Master/scos
swmake gprof
cd /vob/signalware/Master/test/tcap/c7
rm /vob/signalware/Master/library/libscos.so
clearmake -V "PROT_FLAGS=-DC7_Q" gprof

Then running c7icptrans should produce a gmon.out.

To extract the information from gmon.out, use gprof:

gprof /export/home/omni_9S5/bin/test/c7icptrans gmon.out > gprof.txt

Trace system calls from libFt in is41tst32

truss -u libFt:: /export/home/omni/bin/is41tst32 -debug -alone -node A71 -prot A7 -lpc 1-85-2 -rpc 1-85-2 -lssn -rssn 6 -ninvoke 200 0xffff