Profiler::disable()

disable() Disables the profiler.

Profiler::collect()

Profile|null collect(Request $request, Response $response, Exception $exception = null) Collects data for the given Response. Parameters Request $request A Request instance Response $response A Response instance Exception $exception An exception instance if the request threw one Return Value Profile|null A Profile instance or null if the profiler is disabled

Profiler::all()

array all() Gets the Collectors associated with this profiler. Return Value array An array of collectors

Profiler::add()

add(DataCollectorInterface $collector) Adds a Collector. Parameters DataCollectorInterface $collector A DataCollectorInterface instance

Profiler

class Profiler Profiler. Methods __construct(ProfilerStorageInterface $storage, LoggerInterface $logger = null) Constructor. disable() Disables the profiler. enable() Enables the profiler. Profile|false 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. ar

Profile::setUrl()

setUrl($url) Parameters $url

Profile::setToken()

setToken(string $token) Sets the token. Parameters string $token The token

Profile::setTime()

setTime($time) Parameters $time

Profile::setStatusCode()

setStatusCode(int $statusCode) Parameters int $statusCode

Profile::setParent()

setParent(Profile $parent) Sets the parent token. Parameters Profile $parent The parent Profile