8000 Reworded the article about profiler storage by javiereguiluz · Pull Request #6090 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Reworded the article about profiler storage #6090

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 3 commits into from
Feb 7, 2016
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Finished the rewording of the "profiler storage" article
  • Loading branch information
javiereguiluz committed Dec 30, 2015
commit bcc5634849b41f32b904c62ab0b6197b9b09ef2e
21 changes: 18 additions & 3 deletions cookbook/profiler/storage.rst
O 792D riginal file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@
Switching the Profiler Storage
==============================

By default the profile stores the collected data in files in the ``%kernel.cache_dir%/profiler/`` directory.
You can control the storage by implementing the ``Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface`` in
your own service and override the ``profiler.storage`` service.
In Symfony versions previous to 2.8, profiles could be stored in files, databases,
services like Redis and Memcache, etc. Starting from Symfony 2.8, the only storage
mechanism with built-in support is the filesystem.

By default the profile stores the collected data in the ``%kernel.cache_dir%/profiler/``
directory. If you want to use another location to store the profiles, define the
``dsn`` option of the ``framework.profiler``:

.. code-block:: yaml

# app/config/config.yml
framework:
profiler:
dsn: 'file:/tmp/symfony/profiler'

You can also create your own profile storage service implementing the
:class:``Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface`` and
overriding the ``profiler.storage`` service.
0