Plack::Middleware::Debug::TrackObjects(3) Track Objects panel


enable "Debug";
enable "Debug::TrackObjects";

And when you load the application with plackup or other launcher:

  # track everything
  plackup -MDevel::TrackObjects=/^/ myapp.psgi

You can specify the namespace with a regular expression. See Devel::TrackObjects for details.


This debug panel captures objects created in a request cycle by using Devel::TrackObjects. You can run your applications multiple times (i.e. refreshing the page) to see if the count of tracked objects increases, in which case there are leaked objects.