Skip to content

Commit

Permalink
LeakTracker: complain if Devel::Events::Generator::ObjectTracker isn'…
Browse files Browse the repository at this point in the history
…t loaded in time (nothingmuch++)

git-svn-id: svn+ssh://svn.bestpractical.com/svn/jifty.org/jifty/trunk@4709 e84bef0a-9b06-0410-84ba-c4c9edb13aeb
  • Loading branch information
sartak committed Dec 16, 2007
1 parent fe2df42 commit bb3de9f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/Jifty/Plugin/LeakTracker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ use warnings;
package Jifty::Plugin::LeakTracker;
use base qw/Jifty::Plugin Class::Data::Inheritable/;
use Data::Dumper;

BEGIN {
if (!$INC{"Devel/Events/Generator/Objects.pm"}) {
Jifty->log->error("Devel::Events::Generator::Objects must be compiled very early so that it can override 'bless' in time. Usually this means you must run your Jifty application with: perl -MDevel::Events::Generator::Objects bin/jifty");
}
}

use Devel::Events::Handler::ObjectTracker;
use Devel::Events::Generator::Objects;
use Devel::Size 'total_size';
Expand Down

0 comments on commit bb3de9f

Please sign in to comment.