I am working on Linux environment. I have two \'C\' source packages train and test_train.
gprof
won't work, you need to use sprof
instead. I found these links helpful:
Summary from the 2nd link:
I found that in step 2, it needs to be an existing directory -- otherwise you get a helpful warning. And in step 3, you might need to specify the library as libmylib.so.X
(maybe even .X.Y
, not sure) -- otherwise you get no warning whatsoever.