Indentation fix
[mediawiki.git] / maintenance / dtrace / counts.d
blobbedb45473623866d5bff775914b10e1266d6abf9
1 /*
2 * This software is in the public domain.
4 * $Id$
5 */
7 #pragma D option quiet
9 self int tottime;
10 BEGIN {
11 tottime = timestamp;
14 php$target:::function-entry
15 @counts[copyinstr(arg0)] = count();
18 END {
19 printf("Total time: %dus\n", (timestamp - tottime) / 1000);
20 printf("# calls by function:\n");
21 printa("%-40s %@d\n", @counts);