Skip to content

Config console live

Bart van Hoekelen edited this page Apr 26, 2017 · 4 revisions

Tables of contents

Purpose

You can specify if the console results are display live or not. When it live, the results are displayed instantly. Otherwise, the script executed first and then show the results.

Code

// Add namespace at the top 
use Performance\Config;

// Set config item console live
Config::setConsoleLive(true);  // status: true or false
Config::setConsoleLive($status);
Item Type Accept Default Required
$status bool true or false false yes

Exemple

Note: pay attention on the red text live.

Normal state

PHP performance tool - Config:: CONSOLE_LIVE not live

With config item

PHP performance tool - Config:: CONSOLE_LIVE with mask