# _BOUCLE_PROFILER

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 code>_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);``````

Voir aussi : _DEBUG_SLOW_QUERIES.

Author Published : Updated : 09/09/22

Translations : English, français, Nederlands