aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
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 /update.php
parent29ade1d9b971bb14746bab5ec57db0e204c9e137 (diff)
downloadvolse-hubzilla-9796e99fa8378758c4fe0f655b7c192f8fc1690f.tar.gz
volse-hubzilla-9796e99fa8378758c4fe0f655b7c192f8fc1690f.tar.bz2
volse-hubzilla-9796e99fa8378758c4fe0f655b7c192f8fc1690f.zip
added simple build-in profiling
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/update.php b/update.php
index c29394b48..36116341a 100755
--- a/update.php
+++ b/update.php
@@ -1122,3 +1122,19 @@ function update_1130() {
q("ALTER TABLE `item` ADD `file` MEDIUMTEXT NOT NULL AFTER `inform`, ADD FULLTEXT KEY (`file`) ");
}
+/**
+ * CREATE TABLE for profiling
+ */
+function update_1132() {
+ q("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; ");
+}
+