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. |
|
| Boolean |
saveProfile(Profile $profile)
Saves a Profile. |
|
|
purge()
Purges all data from the storage. |
||
| string |
export(Profile $profile)
Exports the current profiler data. |
|
| Profile |
import(string $data)
Imports data into the profiler 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. |
||
| Boolean |
has(string $name)
Returns true if a Collector for the given name exists. |
|
| DataCollectorInterface |
get(string $name)
Gets a Collector by name. |
Details
at line 53
public
__construct(ProfilerStorageInterface $storage, LoggerInterface $logger = null)
Constructor.
at line 62
public
disable()
Disables the profiler.
at line 70
public
enable()
Enables the profiler.
at line 82
public Profile
loadProfileFromResponse(Response $response)
Loads the Profile for the given Response.
at line 98
public Profile
loadProfile(string $token)
Loads the Profile for the given token.
at line 110
public Boolean
saveProfile(Profile $profile)
Saves a Profile.
at line 122
public
purge()
Purges all data from the storage.
at line 134
public string
export(Profile $profile)
Exports the current profiler data.
at line 146
public Profile
import(string $data)
Imports data into the profiler storage.
at line 173
public array
find(string $ip, string $url, string $limit, string $method, string $start, string $end)
Finds profiler tokens for the given criteria.
at line 201
public Profile|null
collect(Request $request, Response $response, Exception $exception = null)
Collects data for the given Response.
at line 230
public array
all()
Gets the Collectors associated with this profiler.
at line 240
public
set(array $collectors = array())
Sets the Collectors associated with this profiler.
at line 253
public
add(DataCollectorInterface $collector)
Adds a Collector.
at line 265
public Boolean
has(string $name)
Returns true if a Collector for the given name exists.
at line 279
public DataCollectorInterface
get(string $name)
Gets a Collector by name.