0

I'm trying measure overhead, we get by using lua script in C++ program. I decided to use gprof for that. I wrote simple program like:

  1. Create lua state
  2. Load lua libs
  3. Do file with lua script

The problem is that gmon.out cointains no time data. It looks like that:

Flat profile:

Each sample counts as 0.01 seconds.
no time accumulated

%   cumulative   self              self     total           
time   seconds   seconds    calls  Ts/call  Ts/call  name    

%         the percentage of the total running time of the
time       program used by this function.

... //rest of file

I wonder if wrap this code in C functions or object functions (aka methods) makes any difference. I've also check this topic but none of solutions works for me. Any idea?

Community
  • 1
  • 1
user2800697
  • 27
  • 1
  • 6

0 Answers0