| Summary: | gprof gives error: | ||
|---|---|---|---|
| Product: | Base System | Reporter: | christor <christor> |
| Component: | gnu | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 3.3-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
christor
2000-04-05 15:50:01 UTC
Gprof seems to work OK for me on 3.4-STABLE. I'd guess you have a
gmon.out file which is corrupt or for a different type of system.
For me it produced a file called hello.gmon, so I had to give this
on the command line.
David.
182% cat hello.c
#include <stdio.h>
int main(void){
printf("hello world!\n");
}
183% gcc -pg -o hello hello.c
184% ls -l
total 55
-rwxr-xr-x 1 dwmalone wheel 54638 Apr 7 20:55 hello
-rw-r--r-- 1 dwmalone wheel 76 Apr 7 20:53 hello.c
185% ./hello
hello world!
186% ls -l
total 74
-rwxr-xr-x 1 dwmalone wheel 54638 Apr 7 20:55 hello
-rw-r--r-- 1 dwmalone wheel 76 Apr 7 20:53 hello.c
-rw-r--r-- 1 dwmalone wheel 18482 Apr 7 20:55 hello.gmon
187% gprof hello hello.gmon
<gmon output follows>
State Changed From-To: open->feedback Does this problem still exist on more recent releases? State Changed From-To: feedback->closed Mail to submitter bounces, and I can't reproduce the problem. |