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