Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

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


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?
Re^2: How do I detect what modules are not being used?
by Limbic~Region (Chancellor) on Apr 07, 2005 at 13: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
Node Status?
node history
Node Type: note [id://445615]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2014-09-03 05:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls