Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Are there CPAN modules that can help write realtime software catalogs

by stevieb (Canon)
on Jun 07, 2023 at 05:29 UTC ( #11152675=note: print w/replies, xml ) Need Help??


in reply to Are there CPAN modules that can help write realtime software catalogs

I had a similar problem years ago, and I solved it by writing an injection routine into Devel::Examine::Subs.

Effectively, it uses PPI to inspect Perl files to find out all manner of information from them. The addition allowed me to inject code at certain points in the code for tracing flow.

This software can inject a routine to write usage statistics to a DB in every single Perl file you have. It will be consistent and reliable. With one command, you can inject as few or as many lines of code to all files across your platform.

I use it for new clients to baseline which files (and down to the subroutine) are actually used, and how often.

Feel free to contact me privately to discuss specific details, then if you go ahead, we can post the details here.

  • Comment on Re: Are there CPAN modules that can help write realtime software catalogs

Replies are listed 'Best First'.
Re^2: Are there CPAN modules that can help write realtime software catalogs
by bliako (Monsignor) on Jun 07, 2023 at 09:26 UTC

    i agree that logging subs usage makes sense. After all use'ing a module/file does not mean it is needed. Is n't a profiler useful? I am away and can't test.

    bw, bliako

    node ownership assigned to bliako by erzuuli

    yes, thanks erzuuli

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11152675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2023-12-02 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (13 votes). Check out past polls.

    Notices?