aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Reed <reedy@users.mediawiki.org>2012-02-08 19:37:34 +0000
committerSam Reed <reedy@users.mediawiki.org>2012-02-08 19:37:34 +0000
commit655c3a65447410c42bc14e4e593a7b35e60bf6f1 (patch)
tree9365c81ad042c0e45ea7535537e93c6d28b1c003
parentefb855cb88280c1021076bb38f913b32816473f5 (diff)
downloadmediawikicore-655c3a65447410c42bc14e4e593a7b35e60bf6f1.tar.gz
mediawikicore-655c3a65447410c42bc14e4e593a7b35e60bf6f1.zip
Bug 34273 - get rid of dtrace example scripts
diediediediediediediediediediediediediediediedie
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110951
-rw-r--r--maintenance/dtrace/counts.d23
-rw-r--r--maintenance/dtrace/tree.d26
2 files changed, 0 insertions, 49 deletions
diff --git a/maintenance/dtrace/counts.d b/maintenance/dtrace/counts.d
deleted file mode 100644
index bedb45473623..000000000000
--- a/maintenance/dtrace/counts.d
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * This software is in the public domain.
- *
- * $Id$
- */
-
-#pragma D option quiet
-
-self int tottime;
-BEGIN {
- tottime = timestamp;
-}
-
-php$target:::function-entry
- @counts[copyinstr(arg0)] = count();
-}
-
-END {
- printf("Total time: %dus\n", (timestamp - tottime) / 1000);
- printf("# calls by function:\n");
- printa("%-40s %@d\n", @counts);
-}
-
diff --git a/maintenance/dtrace/tree.d b/maintenance/dtrace/tree.d
deleted file mode 100644
index a799cb12fc39..000000000000
--- a/maintenance/dtrace/tree.d
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * This software is in the public domain.
- *
- * $Id$
- */
-
-#pragma D option quiet
-
-self int indent;
-self int times[int];
-
-php$target:::function-entry
-{
- @counts[copyinstr(arg0)] = count();
- printf("%*s", self->indent, "");
- printf("-> %s\n", copyinstr(arg0));
- self->times[self->indent] = timestamp;
- self->indent += 2;
-}
-
-php$target:::function-return
-{
- self->indent -= 2;
- printf("%*s", self->indent, "");
- printf("<- %s %dus\n", copyinstr(arg0), (timestamp - self->times[self->indent]) / 1000);
-}