Profiler\Profiler (Component\HttpKernel)
Symfony\Component\HttpKernel\Profiler\Profiler
class Profiler
Profiler.
Methods
__construct(ProfilerStorageInterface $storage, LoggerInterface $logger = null) Constructor. | ||
disable() Disables the profiler. | ||
enable() Enables the profiler. | ||
Profile | loadProfileFromResponse(Response $response) Loads the Profile for the given Response. | |
Profile | loadProfile(string $token) Loads the Profile for the given token. | |
bool | saveProfile(Profile $profile) Saves a Profile. | |
purge() Purges all data from the storage. | ||
array | find(string $ip, string $url, string $limit, string $method, string $start, string $end) Finds profiler tokens for the given criteria. | |
Profile|null | collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Response. | |
array | all() Gets the Collectors associated with this profiler. | |
set(array $collectors = array()) Sets the Collectors associated with this profiler. | ||
add(DataCollectorInterface $collector) Adds a Collector. | ||
bool | has(string $name) Returns true if a Collector for the given name exists. | |
DataCollectorInterface | get(string $name) Gets a Collector by name. |
Details
public __construct(ProfilerStorageInterface $storage, LoggerInterface $logger = null)
Constructor.
public disable()
Disables the profiler.
public enable()
Enables the profiler.
public Profile loadProfileFromResponse(Response $response)
Loads the Profile for the given Response.
public Profile loadProfile(string $token)
Loads the Profile for the given token.
public bool saveProfile(Profile $profile)
Saves a Profile.
public purge()
Purges all data from the storage.
public array find(string $ip, string $url, string $limit, string $method, string $start, string $end)
Finds profiler tokens for the given criteria.
public Profile|null collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Response.
public array all()
Gets the Collectors associated with this profiler.
public set(array $collectors = array())
Sets the Collectors associated with this profiler.
public add(DataCollectorInterface $collector)
Adds a Collector.
public bool has(string $name)
Returns true if a Collector for the given name exists.
public DataCollectorInterface get(string $name)
Gets a Collector by name.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/HttpKernel/Profiler/Profiler.html