Profiling table (optional) for SQLite
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 4 Oct 2010 20:55:14 +0000 (20:55 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 4 Oct 2010 20:55:14 +0000 (20:55 +0000)
maintenance/sqlite/archives/patch-profiling.sql [new file with mode: 0644]

diff --git a/maintenance/sqlite/archives/patch-profiling.sql b/maintenance/sqlite/archives/patch-profiling.sql
new file mode 100644 (file)
index 0000000..a711dd7
--- /dev/null
@@ -0,0 +1,11 @@
+-- profiling table for SQLite
+-- This is optional
+
+CREATE TABLE /*$wgDBprefix*/profiling (
+  pf_count int NOT NULL default 0,
+  pf_time float NOT NULL default 0,
+  pf_memory float NOT NULL default 0,
+  pf_name varchar(255) NOT NULL default '',
+  pf_server varchar(30) NOT NULL default '',
+  PRIMARY KEY (pf_name, pf_server)
+);