Major refactoring of site and user CSS, creating ResourceLoaderUserModule and Resourc...
[mediawiki.git] / maintenance / dtrace / tree.d
bloba799cb12fc39205835fce9f65fe8fee839290d2d
1 /*
2 * This software is in the public domain.
4 * $Id$
5 */
7 #pragma D option quiet
9 self int indent;
10 self int times[int];
12 php$target:::function-entry
14 @counts[copyinstr(arg0)] = count();
15 printf("%*s", self->indent, "");
16 printf("-> %s\n", copyinstr(arg0));
17 self->times[self->indent] = timestamp;
18 self->indent += 2;
21 php$target:::function-return
23 self->indent -= 2;
24 printf("%*s", self->indent, "");
25 printf("<- %s %dus\n", copyinstr(arg0), (timestamp - self->times[self->indent]) / 1000);