Skip to content
Browse files

Debugger: Increase size of memory reserve for Debugger.

The value of 30000 bytes was an incorrect representation of the previous "scientific notation value" of "3e5". I can only assume the notation was changed to increase readability, but the change was done improperly and introduced a regression.

Also the number of bytes reserved for the error renderer was increased to 500 kB, since 300 kBs wasn't enough for the whole error page to render correctly.
  • Loading branch information...
smuuf authored and dg committed May 25, 2019
1 parent 45349cc commit 988f72899d4ce411d96b564f13635c0fcc99d1c3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Tracy/Debugger/Debugger.php
@@ -152,7 +152,7 @@ public static function enable($mode = null, string $logDirectory = null, $email
self::$productionMode = is_bool($mode) ? $mode : !self::detectDebugMode($mode);
self::$reserved = str_repeat('t', 30000);
self::$reserved = str_repeat('t', 500000);
self::$time = $_SERVER['REQUEST_TIME_FLOAT'] ?? microtime(true);
self::$obLevel = ob_get_level();
self::$cpuUsage = !self::$productionMode && function_exists('getrusage') ? getrusage() : null;

0 comments on commit 988f728

Please sign in to comment.
You can’t perform that action at this time.