Package: kprof
Version: 1.4.3-2
Standard Debian Stable machine.
$ gcc --version
gcc (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
$ gprof -v
GNU gprof 2.15
Based on BSD gprof, copyright 1983 Regents of the University of
California.
This program is free software. This program has absolutely no warranty.
$ cat example.c
int f02 (int a) {
if (a == 0) {
return a;
} else {
return f02(a - 1) + a;
}
}
int f01 (int a) {
return a;
}
int f00 (int a) {
if (a == 1) {
return a*f01(a);
} else {
return a*f02(a);
}
}
int main (int argc, char **argv) {
return f00(1) + f00(2);
}
$ gcc -pg -g example.c -o example
$ rm gmon.out
$ ./example
$ kprof
File->Open and pick 'example'
Tools->Generate Call Graph pick VCG, Run Graph Application and Whole
Call Tree, click OK.
A dialog box is displayed with title "Exited with error(s) - KProf" and
contents "xvcg could not display the data." but xvcg starts and displays
the data without problem? Clicking OK closes both the dialog box and
the xvcg window.
Cheers,
- Martin
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]