**SPIP**
# Article validated
The article "**\_BOUCLE\_PROFILER**
(https://www.spip.net/en_article6577.html)" was validated by
<multi>[ar]جورج[fr]George [en]George</multi>.
* * *
## \_BOUCLE\_PROFILER
Saturday 30 May 2020 , by [jack](.././?page=auteur&id_auteur=593&)
This constant specifies the time (in milliseconds) beyond which the
calculation of a loop will be traced.
This constant is used to add (since SPIP version 3.0.9
(https://www.spip.net/ecrire/?exec=article&id_article=5619)) 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</code>** in your file `config/mes_options.php`
(see the article dedicated to it
(https://www.spip.net/ecrire/?exec=article&id_article=4909))
example :
// trace loops that take more than 5 seconds to be calculated
define
(http://www.php.net/define)
(
'_BOUCLE_PROFILER'
,
5000
)
;
— Sent by SPIP (https://www.spip.net/)
