1
0
Fork 0

removed unneccessary stuff

This commit is contained in:
Alexander Kampmann 2012-03-22 12:52:24 +01:00
parent cea7ca1df4
commit ad9d0dadb3
2 changed files with 0 additions and 23 deletions

View file

@ -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) {
/**

View file

@ -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);