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:
- Create lua state
- Load lua libs
- 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?