Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
laziness, impatience, and hubris
 
PerlMonks  

Re: How do I detect what modules are not being used?

by redlemon (Hermit)
on Apr 07, 2005 at 07:47 UTC ( [id://445615]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to How do I detect what modules are not being used?

This is a relatively naive solution, but one I'd probably give a try.

I don't know if you're running a UNIX variant, but an option would be to set the atime of all modules to a known value, run the application stack and then check what atime have changed.

You'd have to know of course nothing else is touching the modules, like backups, slocate, finds, etc.

  • Comment on Re: How do I detect what modules are not being used?

Replies are listed 'Best First'.
Re^2: How do I detect what modules are not being used?
by Limbic~Region (Chancellor) on Apr 07, 2005 at 09:06 UTC
    redlemon,
    See my earlier reply. This question is not about which modules are being imported, it is about which of those that are being imported are actually being used. This method will not solve that problem.

    Cheers - L~R

      Oh dear. You're right. That's going to make it a bit harder.

      I wonder if B::Xref would be of help. Although it would only give you an intermediate output format (namely, what is defined where and what is used where), that may be parseable into something more useful.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://445615]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.