Skip to content

[Profiler] Improve a part of the profiler docs #20000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions profiler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ method to access to its associated profile::
// ... $profiler is the 'profiler' service
$profile = $profiler->loadProfileFromResponse($response);

.. note::

To declare the profiler service you can refer to :ref:`Enabling the Profiler Conditionally <enabling_the_profiler_conditionally_tag>`.

When the profiler stores data about a request, it also associates a token with it;
this token is available in the ``X-Debug-Token`` HTTP header of the response.
Using this token, you can access the profile of any past response thanks to the
Expand Down Expand Up @@ -110,6 +114,8 @@ need to create a custom data collector. Instead, use the built-in utilities to
Consider using a professional profiler such as `Blackfire`_ to measure and
analyze the execution of your application in detail.

.. _enabling_the_profiler_conditionally_tag:

Enabling the Profiler Conditionally
-----------------------------------

Expand Down
Loading