Generate callstack value from inside Profiler::saveTimestamp
- Save a massive amount of time computing callstacks when profiling is disabled
This commit is contained in:
@@ -90,7 +90,7 @@ class Theme
|
||||
|
||||
$stamp1 = microtime(true);
|
||||
$theme_file = file_get_contents("view/theme/$theme/theme.php");
|
||||
DI::profiler()->saveTimestamp($stamp1, "file", System::callstack());
|
||||
DI::profiler()->saveTimestamp($stamp1, "file");
|
||||
|
||||
$result = preg_match("|/\*.*\*/|msU", $theme_file, $matches);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user