version 1.12, 2003/06/03 02:56:08 |
version 1.13, 2003/06/10 22:20:47 |
|
|
extern char *__progname; |
extern char *__progname; |
|
|
int |
int |
main(argc, argv) |
main(int argc, char *argv[]) |
int argc; |
|
char **argv; |
|
{ |
{ |
char **sp; |
char **sp; |
nltype **timesortnlp; |
nltype **timesortnlp; |
|
|
* and the arcs. |
* and the arcs. |
*/ |
*/ |
void |
void |
getpfile(filename) |
getpfile(char *filename) |
char *filename; |
|
{ |
{ |
FILE *pfile; |
FILE *pfile; |
FILE *openpfile(); |
FILE *openpfile(); |
|
|
} |
} |
|
|
FILE * |
FILE * |
openpfile(filename) |
openpfile(char *filename) |
char *filename; |
|
{ |
{ |
struct gmonhdr tmp; |
struct gmonhdr tmp; |
FILE *pfile; |
FILE *pfile; |
|
|
} |
} |
|
|
void |
void |
tally( rawp ) |
tally(struct rawarc *rawp) |
struct rawarc *rawp; |
|
{ |
{ |
nltype *parentp; |
nltype *parentp; |
nltype *childp; |
nltype *childp; |
|
|
* dump out the gmon.sum file |
* dump out the gmon.sum file |
*/ |
*/ |
void |
void |
dumpsum( sumfile ) |
dumpsum(char *sumfile) |
char *sumfile; |
|
{ |
{ |
nltype *nlp; |
nltype *nlp; |
arctype *arcp; |
arctype *arcp; |
|
|
} |
} |
|
|
void |
void |
readsamples(pfile) |
readsamples(FILE *pfile) |
FILE *pfile; |
|
{ |
{ |
UNIT sample; |
UNIT sample; |
int i; |
int i; |
|
|
* have any overlap (the two end cases, above). |
* have any overlap (the two end cases, above). |
*/ |
*/ |
void |
void |
asgnsamples() |
asgnsamples(void) |
{ |
{ |
int j; |
int j; |
UNIT ccnt; |
UNIT ccnt; |
|
|
|
|
|
|
unsigned long |
unsigned long |
min(a, b) |
min(unsigned long a, unsigned long b) |
unsigned long a,b; |
|
{ |
{ |
if (a<b) |
if (a<b) |
return(a); |
return(a); |
|
|
} |
} |
|
|
unsigned long |
unsigned long |
max(a, b) |
max(unsigned long a, unsigned long b) |
unsigned long a,b; |
|
{ |
{ |
if (a>b) |
if (a>b) |
return(a); |
return(a); |
|
|
* for a routine is in the next bucket. |
* for a routine is in the next bucket. |
*/ |
*/ |
void |
void |
alignentries() |
alignentries(void) |
{ |
{ |
struct nl *nlp; |
struct nl *nlp; |
unsigned long bucket_of_entry; |
unsigned long bucket_of_entry; |