10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4f51e6 commit 01ca38dCopy full SHA for 01ca38d
performance.rst
@@ -382,10 +382,16 @@ All events that don't belong to any named section are added to the special secti
382
called ``__root__``. This way you can get all stopwatch events, even if you don't
383
know their names, as follows::
384
385
- foreach($this->stopwatch->getSectionEvents('__root__') as $event) {
+ use Symfony\Component\Stopwatch\Stopwatch;
386
+
387
+ foreach($this->stopwatch->getSectionEvents(Stopwatch::ROOT) as $event) {
388
echo (string) $event;
389
}
390
391
+.. versionadded:: 7.2
392
393
+ The ``Stopwatch::ROOT`` constant as a shortcut for ``__root__`` was introduced in Symfony 7.2.
394
395
Learn more
396
----------
397
0 commit comments