gprof.c (2513) | gprof.c (5190) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 47 48 /* 49 * things which get -E excluded by default. 50 */ 51char *defaultEs[] = { "mcount" , "__mcleanup" , 0 }; 52 53static struct gmonhdr gmonhdr; 54static bool uflag; | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 38 unchanged lines hidden (view full) --- 47 48 /* 49 * things which get -E excluded by default. 50 */ 51char *defaultEs[] = { "mcount" , "__mcleanup" , 0 }; 52 53static struct gmonhdr gmonhdr; 54static bool uflag; |
55static int lflag; 56static int Lflag; |
|
55 56main(argc, argv) 57 int argc; 58 char **argv; 59{ 60 char **sp; 61 nltype **timesortnlp; 62 --- 55 unchanged lines hidden (view full) --- 118 addlist( flist , *++argv ); 119 fflag = TRUE; 120 break; 121 case 'k': 122 addlist( kfromlist , *++argv ); 123 addlist( ktolist , *++argv ); 124 kflag = TRUE; 125 break; | 57 58main(argc, argv) 59 int argc; 60 char **argv; 61{ 62 char **sp; 63 nltype **timesortnlp; 64 --- 55 unchanged lines hidden (view full) --- 120 addlist( flist , *++argv ); 121 fflag = TRUE; 122 break; 123 case 'k': 124 addlist( kfromlist , *++argv ); 125 addlist( ktolist , *++argv ); 126 kflag = TRUE; 127 break; |
126 case 's': | 128 case 'l': 129 lflag = 1; 130 Lflag = 0; 131 break; 132 case 'L': 133 Lflag = 1; 134 lflag = 0; 135 break; 136 case 's': |
127 sflag = TRUE; 128 break; 129 case 'u': 130 uflag = TRUE; 131 break; 132 case 'z': 133 zflag = TRUE; 134 break; --- 54 unchanged lines hidden (view full) --- 189 asgnsamples(); 190 /* 191 * assemble the dynamic profile 192 */ 193 timesortnlp = doarcs(); 194 /* 195 * print the dynamic profile 196 */ | 137 sflag = TRUE; 138 break; 139 case 'u': 140 uflag = TRUE; 141 break; 142 case 'z': 143 zflag = TRUE; 144 break; --- 54 unchanged lines hidden (view full) --- 199 asgnsamples(); 200 /* 201 * assemble the dynamic profile 202 */ 203 timesortnlp = doarcs(); 204 /* 205 * print the dynamic profile 206 */ |
197 printgprof( timesortnlp ); | 207 if(!lflag) { 208 printgprof( timesortnlp ); 209 } |
198 /* 199 * print the flat profile 200 */ | 210 /* 211 * print the flat profile 212 */ |
201 printprof(); | 213 if(!Lflag) { 214 printprof(); 215 } |
202 /* 203 * print the index 204 */ 205 printindex(); 206 done(); 207} 208 209 /* --- 545 unchanged lines hidden --- | 216 /* 217 * print the index 218 */ 219 printindex(); 220 done(); 221} 222 223 /* --- 545 unchanged lines hidden --- |