aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kampmann <programmer@nurfuerspam.de>2012-03-22 12:52:24 +0100
committerAlexander Kampmann <programmer@nurfuerspam.de>2012-03-22 12:52:24 +0100
commitad9d0dadb3ade47d9ecbe5a0ffea12a8f9c4a96d (patch)
tree90bc6fb3d5386958575182126285aad944743450
parentcea7ca1df4fd8065c38a4f43a0f13ba89e8b94e2 (diff)
downloadvolse-hubzilla-ad9d0dadb3ade47d9ecbe5a0ffea12a8f9c4a96d.tar.gz
volse-hubzilla-ad9d0dadb3ade47d9ecbe5a0ffea12a8f9c4a96d.tar.bz2
volse-hubzilla-ad9d0dadb3ade47d9ecbe5a0ffea12a8f9c4a96d.zip
removed unneccessary stuff
-rwxr-xr-xindex.php2
-rwxr-xr-xutil/profiler.php21
2 files changed, 0 insertions, 23 deletions
diff --git a/index.php b/index.php
index 688eee2ee..c82b20386 100755
--- a/index.php
+++ b/index.php
@@ -41,8 +41,6 @@ require_once("dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
unset($db_host, $db_user, $db_pass, $db_data);
-require_once('util/profiler.php');
-
if(! $install) {
/**
diff --git a/util/profiler.php b/util/profiler.php
deleted file mode 100755
index fe33fe429..000000000
--- a/util/profiler.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-function microtime_float()
-{
- return microtime(true);
-}
-
-function tick_event() {
- $db_info=debug_backtrace();
- $db_info=$db_info[1];
- $function=$db_info['function'];
- $file=$db_info['file'];
- $line=$db_info['line'];
- $class=$db_info['class'];
-
- //save results
- q("INSERT INTO `profiling` (`function`, `file`, `line`, `class`, `time`) VALUES ('%s', '%s', '%d', '%s', '%f'); ",
- dbesc($function), dbesc($file), intval($line), dbesc($class), microtime_float()*1000);
-}
-
-register_tick_function('tick_event');
-declare(ticks=50); \ No newline at end of file