[Jifty-commit] r4709 - in jifty/trunk: lib/Jifty/Plugin
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Dec 16 16:16:11 EST 2007
Author: sartak
Date: Sun Dec 16 16:16:11 2007
New Revision: 4709
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Plugin/LeakTracker.pm
Log:
r49124 at onn: sartak | 2007-12-16 16:14:49 -0500
LeakTracker: complain if Devel::Events::Generator::ObjectTracker isn't loaded in time (nothingmuch++)
Modified: jifty/trunk/lib/Jifty/Plugin/LeakTracker.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/LeakTracker.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/LeakTracker.pm Sun Dec 16 16:16:11 2007
@@ -4,6 +4,13 @@
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';
More information about the Jifty-commit
mailing list