]> git.mxchange.org Git - friendica.git/commitdiff
removed unneccessary stuff
authorAlexander Kampmann <programmer@nurfuerspam.de>
Thu, 22 Mar 2012 11:52:24 +0000 (12:52 +0100)
committerAlexander Kampmann <programmer@nurfuerspam.de>
Thu, 22 Mar 2012 11:52:24 +0000 (12:52 +0100)
index.php
util/profiler.php [deleted file]

index 688eee2ee274054b94fc12e44d4ac60475a0753a..c82b20386394c07b90fcbe629e8ff589709768c9 100755 (executable)
--- 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 (executable)
index fe33fe4..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-function microtime_float()\r
-{\r
-       return microtime(true);\r
-}\r
-\r
-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');\r
-declare(ticks=50);
\ No newline at end of file