Symfony\Component\HttpKernel\Profiler\Profiler
Profiler.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class Profiler
{
- // members
- private ProfilerStorageInterface $storage;
- private array $collectors;
- private LoggerInterface $logger;
- private Boolean $enabled;
- // methods
- public void __construct()
- public void disable()
- public void enable()
- public Profile loadProfileFromResponse()
- public Profile loadProfile()
- public Boolean saveProfile()
- public void purge()
- public string export()
- public Profile import()
- public array find()
- public Profile|null collect()
- public array all()
- public void set()
- public void add()
- public Boolean has()
- public DataCollectorInterface get()
Members
private
- $collectors — array
- $enabled — Symfony\Component\HttpKernel\Profiler\Boolean
- $logger — Psr\Log\LoggerInterface
- $storage — Symfony\Component\HttpKernel\Profiler\ProfilerStorageInterface
Methods
public
- __construct() — Constructor.
- add() — Adds a Collector.
- all() — Gets the Collectors associated with this profiler.
- collect() — Collects data for the given Response.
- disable() — Disables the profiler.
- enable() — Enables the profiler.
- export() — Exports the current profiler data.
- find() — Finds profiler tokens for the given criteria.
- get() — Gets a Collector by name.
- has() — Returns true if a Collector for the given name exists.
- import() — Imports data into the profiler storage.
- loadProfile() — Loads the Profile for the given token.
- loadProfileFromResponse() — Loads the Profile for the given Response.
- purge() — Purges all data from the storage.
- saveProfile() — Saves a Profile.
- set() — Sets the Collectors associated with this profiler.