#include <stdio.h>
#include <string.h>
#include <malloc.h>
Go to the source code of this file.
◆ NUM_FILES
◆ add_fn()
Definition at line 23 of file sprof.c.
24{
28}
VAR int * line_buf[NUM_FILES]
VAR char * file_names[NUM_FILES]
◆ add_line()
Definition at line 13 of file sprof.c.
14{
16 {
20 }
21 else printf(
"overflow: %d\n",
l);
22}
◆ main()
Definition at line 73 of file sprof.c.
74{
77 if(
f==
NULL) {
printf(
"cannot read smon.out\n");
return 2; }
79 {
84 {
85
87 char c;
89 while((
buf[
i]!=
':')&&(
i<200))
i++;
92 while ((
buf[
i]!=
' ')&&(
i<200))
i++;
95 {
97 }
99 {
104 }
105 }
106 }
108 printf(
"----- all read\n");
109 {
112 {
115 }
116 }
117 return(0);
118}
void add_line(int fn, int l)
void add_fn(int fn, char *b)
◆ print_line()
Definition at line 30 of file sprof.c.
31{
37 {
39 return;
40 }
41 else
42 {
46 }
49 {
50 char line[500];
56 else
58 }
62 {
64 {
68 }
69 }
71}
const CanonicalForm int s
◆ buf
◆ file_names
◆ fn_cnt
◆ line_buf