Skip to content

Commit 714a051

Browse files
committed
Improve the documentation with a link for the profile service declaration
1 parent 4e9cd70 commit 714a051

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

profiler.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ method to access to its associated profile::
4949
// ... $profiler is the 'profiler' service
5050
$profile = $profiler->loadProfileFromResponse($response);
5151

52+
.. note::
53+
54+
To declare the profiler service you can refer to :ref:`Enabling the Profiler Conditionally <enabling_the_profiler_conditionally_tag>`.
55+
5256
When the profiler stores data about a request, it also associates a token with it;
5357
this token is available in the ``X-Debug-Token`` HTTP header of the response.
5458
Using this token, you can access the profile of any past response thanks to the
@@ -110,6 +114,8 @@ need to create a custom data collector. Instead, use the built-in utilities to
110114
Consider using a professional profiler such as `Blackfire`_ to measure and
111115
analyze the execution of your application in detail.
112116

117+
.. _enabling_the_profiler_conditionally_tag:
118+
113119
Enabling the Profiler Conditionally
114120
-----------------------------------
115121

0 commit comments

Comments
 (0)