Plack:...bjects(3pm)

πŸ“¦
version 0.18 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Plack::Middleware::Debug::TrackObjects β€” the Track Objects panel, bestie. That's it, that's the whole vibe ✨


🌸 SYNOPSIS 🌸

okay so first you gotta turn on the panel, like so:

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

and then when you actually load the app with plackup or literally any other launcher:

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

you can specify the namespace with a regular expression, which is lowkey iconic tbh. see Devel::TrackObjects for the deets πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so this debug panel captures objects created in a request cycle by using Devel::TrackObjects. that's the whole plot πŸ’…

and here's the fun part: you can run your application like multiple times (i.e. just keep refreshing the page, we've all been there) to see if the count of tracked objects increases β€” and if it does?? 🚨 that means there are leaked objects, bestie. not me catching memory leaks with a debug panel, we love a main character tool πŸ‘‘


⭐ SEE ALSO ⭐

  • Plack::Middleware::Debug
  • Devel::TrackObjects

perl v5.36.0 Β· 2022-10-14 β€” and that's the whole page, pookie 🫢 go track some objects, stay leak-free, mwah πŸ’–βœ¨πŸŒˆ

πŸ“¦ where this page comes from