This constant specifies the time (in milliseconds) beyond which the calculation of a loop will be traced.

  • New in : SPIP 3.0

This constant is used to add a log file (tmp/log/profiler.log) tracing the names of loops (and calling templates) whose calculation exceeds a threshold defined in milliseconds.
To trace the too long loops, it is necessary to define the constant _BOUCLE_PROFILER in your file config/mes_options.php (see the article dedicated to it)

example :

// trace loops that take more than 5 seconds to be calculated
define('_BOUCLE_PROFILER', 5000);


Author jack Published : Updated : 11/09/23

Translations : English, français, Nederlands