aboutsummaryrefslogtreecommitdiffstats
path: root/database.sql
diff options
context:
space:
mode:
authorAlexander Kampmann <programmer@nurfuerspam.de>2012-03-15 11:45:06 +0100
committerAlexander Kampmann <programmer@nurfuerspam.de>2012-03-15 11:45:06 +0100
commit9796e99fa8378758c4fe0f655b7c192f8fc1690f (patch)
tree82f67ab99c3816ff66aa25c3c5f15953ecc43e5c /database.sql
parent29ade1d9b971bb14746bab5ec57db0e204c9e137 (diff)
downloadvolse-hubzilla-9796e99fa8378758c4fe0f655b7c192f8fc1690f.tar.gz
volse-hubzilla-9796e99fa8378758c4fe0f655b7c192f8fc1690f.tar.bz2
volse-hubzilla-9796e99fa8378758c4fe0f655b7c192f8fc1690f.zip
added simple build-in profiling
Diffstat (limited to 'database.sql')
-rwxr-xr-xdatabase.sql11
1 files changed, 10 insertions, 1 deletions
diff --git a/database.sql b/database.sql
index 35c257f02..f8d4c7fc2 100755
--- a/database.sql
+++ b/database.sql
@@ -857,4 +857,13 @@ INDEX ( `ham` ),
INDEX ( `term` )
) ENGINE = MyISAM DEFAULT CHARSET=utf8;
-
+CREATE TABLE IF NOT EXISTS `profiling` (
+`id` INT NOT NULL AUTO_INCREMENT PRIMARY_KEY ,
+`function` VARCHAR(255) NOT NULL,
+`file` VARCHAR(255) NOT NULL,
+`line` INT NOT NULL DEFAULT '-1',
+`class` VARCHAR(255),
+`time` FLOAT(10, 2) NOT NULL,
+INDEX(`function`),
+INDEX(`file`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;