Start managing output and input context from special pages themselves instead of...
[lhc/web/wiklou.git] / maintenance / dtrace / counts.d
1 /*
2 * This software is in the public domain.
3 *
4 * $Id$
5 */
6
7 #pragma D option quiet
8
9 self int tottime;
10 BEGIN {
11 tottime = timestamp;
12 }
13
14 php$target:::function-entry
15 @counts[copyinstr(arg0)] = count();
16 }
17
18 END {
19 printf("Total time: %dus\n", (timestamp - tottime) / 1000);
20 printf("# calls by function:\n");
21 printa("%-40s %@d\n", @counts);
22 }
23