merge slow-page-log into tracer, fixes #673

This commit is contained in:
Shish
2019-07-07 13:51:19 +01:00
parent 99646a4b00
commit 4cadce1de0
4 changed files with 8 additions and 20 deletions

View File

@@ -108,8 +108,8 @@ function send_event(Event $event): void
$method_name = "on".str_replace("Event", "", get_class($event));
// send_event() is performance sensitive, and with the number
// of times context gets called the time starts to add up
$tracer_enabled = constant('EVENT_TRACE');
// of times tracer gets called the time starts to add up
$tracer_enabled = constant('TRACE_FILE');
if ($tracer_enabled) $_tracer->begin(get_class($event));
// SHIT: http://bugs.php.net/bug.php?id=35106