gprof profiling w/ system call doesn't work
Original Reporter info from Mantis: bbauman
-
Reporter name: Bruce Bauman
Original Reporter info from Mantis: bbauman
- Reporter name: Bruce Bauman
Description:
If I compile a program which makes system calls with the -pg option, the system calls appear to be called spontaneously:
index % time self children called name
<spontaneous>
[1] 92.6 0.63 0.00 SYSTEM_FPSYSCALLINT64
INT64INT64
$INT64 [1]
-----------------------------------------------
Steps to reproduce:
Compile this program with -pg, run it, then run gprof:
program syscalltest;
var
i : longint;
S : string;
begin
for i := 1 to 1000000 do
begin
getdir(0, S);
end;
end.
Mantis conversion info:
- Mantis ID: 17140
- OS: Linux
- OS Build: CentOS 5.2
- Platform: x86_64
- Version: 2.5.1
- Monitored by: » Vincent (Vincent Snijders)