| Catalyst-Plugin-LeakTracker documentation | view source | Contained in the Catalyst-Plugin-LeakTracker distribution. |
Catalyst::Plugin::LeakTracker - Use Devel::Events::Objects to track object leaks in the Catalyst request cycle.
package MyApp;
use Catalyst qw/
LeakTracker
/;
# ...
sub foo : Local {
my ( $self, $c ) = @_;
$c->object_trackers
}
This plugin will use Devel::Events::Objects and Devel::Events::Handler::Log::Memory to keep track of objects created in every request. It will also generate events corresponding to the request flow and action execution to facilitate generating stack dumps and more debugging information.
You probably just want to use Catalyst::Controller::LeakTracker to get leak reports.
Returns all the request IDs
Returns all the request_begin events
Get all the events that happenned in a given request
Gets the logged event by id
Returns a Catalyst action stack trace for the event ID
Returns the object tracker instantiated for the specified request
Returns the event entry. This contains the "real" copy of the object, not the
stringified version that get_event_by_id would give.
Like get_object_entry_by_id but returns just the object field.
These class data accessors contain the various support objects.
These methods create the various Devel::Events and Devel::Events::Objects instances.
Devel::Events, Devel::Events::Objects, Catalyst::Controller::LeakTracker, http://blog.jrock.us/articles/Plugging%20a%20leaky%20whale.pod
Yuval Kogman <nothingmuch@woobling.org>
Copyright (c) 2007 Yuval Kogman. All rights reserved This program is free software; you can redistribute it and/or modify it under the terms of the MIT license or the same terms as Perl itself.
| Catalyst-Plugin-LeakTracker documentation | view source | Contained in the Catalyst-Plugin-LeakTracker distribution. |