Skip to content

Commit

Permalink
Replace the __CLASS__ with "Kohana" (Profiler::start(__CLASS__, ...))…
Browse files Browse the repository at this point in the history
… in Kohana_Core
  • Loading branch information
Woody Gilk committed Sep 15, 2009
1 parent 4602e87 commit 672aa58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions classes/kohana/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public static function init(array $settings = NULL)
if (self::$profiling === TRUE)
{
// Start a new benchmark
$benchmark = Profiler::start(__CLASS__, __FUNCTION__);
$benchmark = Profiler::start('Kohana', __FUNCTION__);
}

// Start an output buffer
Expand Down Expand Up @@ -379,7 +379,7 @@ public static function modules(array $modules = NULL)
if (self::$profiling === TRUE)
{
// Start a new benchmark
$benchmark = Profiler::start(__CLASS__, __FUNCTION__);
$benchmark = Profiler::start('Kohana', __FUNCTION__);
}

// Start a new list of include paths, APPPATH first
Expand Down Expand Up @@ -477,7 +477,7 @@ public static function find_file($dir, $file, $ext = NULL)
if (self::$profiling === TRUE AND class_exists('Profiler', FALSE))
{
// Start a new benchmark
$benchmark = Profiler::start(__CLASS__, __FUNCTION__);
$benchmark = Profiler::start('Kohana', __FUNCTION__);
}

if ($dir === 'config' OR $dir === 'i18n' OR $dir === 'messages')
Expand Down

0 comments on commit 672aa58

Please sign in to comment.