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.
2 parents e68413e + cfdeef3 commit d7bf00aCopy full SHA for d7bf00a
performance.rst
@@ -334,6 +334,14 @@ Sections are a way to split the profile timeline into groups. Example::
334
$this->stopwatch->start('processing-file');
335
$this->stopwatch->stopSection('parsing');
336
337
+All events that don't belong to any named section are added to the special section
338
+called ``__root__``. This way you can get all stopwatch events, even if you don't
339
+know their names, as follows::
340
+
341
+ foreach($this->stopwatch->getSectionEvents('__root__') as $event) {
342
+ echo (string) $event;
343
+ }
344
345
Learn more
346
----------
347
0 commit comments