Profiler
class Profiler
Profiler.
Methods
Disables the profiler.
Enables the profiler.
Loads the Profile for the given token.
Purges all data from the storage.
Finds profiler tokens for the given criteria.
Gets the Collectors associated with this profiler.
Sets the Collectors associated with this profiler.
Returns true if a Collector for the given name exists.
Gets a Collector by name.
Details
at line line 53
__construct(ProfilerStorageInterface $storage, LoggerInterface $logger = null)
Constructor.
at line line 62
disable()
Disables the profiler.
at line line 70
enable()
Enables the profiler.
at line line 82
Profile
loadProfileFromResponse(Response $response)
Loads the Profile for the given Response.
at line line 98
Profile
loadProfile(string $token)
Loads the Profile for the given token.
at line line 110
bool
saveProfile(Profile $profile)
Saves a Profile.
at line line 129
purge()
Purges all data from the storage.
at line line 148
array
find(string $ip, string $url, string $limit, string $method, string $start, string $end)
Finds profiler tokens for the given criteria.
at line line 162
Profile|null
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Response.
at line line 192
array
all()
Gets the Collectors associated with this profiler.
at line line 202
set(array $collectors = array())
Sets the Collectors associated with this profiler.
at line line 215
add(DataCollectorInterface $collector)
Adds a Collector.
at line line 227
bool
has(string $name)
Returns true if a Collector for the given name exists.
at line line 241
DataCollectorInterface
get(string $name)
Gets a Collector by name.