Switching the Profiler Storage
Edit this pageWarning: You are browsing the documentation for Symfony 4.0, which is no longer maintained.
Read the updated version of this page for Symfony 6.0 (the current stable version).
Switching the Profiler Storage
The profiler 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
:
- YAML
- XML
- PHP
1 2 3 4
# config/packages/dev/web_profiler.yaml
framework:
profiler:
dsn: 'file:/tmp/symfony/profiler'
You can also create your own profile storage service implementing the
ProfilerStorageInterface and
overriding the profiler.storage
service.