Devel::TraceUse - show the modules your program loads, recursively
An apparently simple program may load a lot of modules. That's useful, but sometimes you may wonder exactly which part of your program loads which module.
Devel::TraceUse can analyze a program to see which part used which module. I recommend using it from the command line:
Devel::TraceUse
$ B<perl -d:TraceUse your_program.pl>
This will display a tree of the modules ultimately used to run your program. (It also runs your program with only a little startup cost all the way through to the end.)
Modules used from your_program.pl: Test::MockObject::Extends, line 6 (0.000514) Test::MockObject, line 6 (0.000408) Scalar::Util, line 9 (0.000521) List::Util, line 12 (0.000393) XSLoader, line 24 (0.000396) UNIVERSAL::isa, line 10 (0.000436) UNIVERSAL, line 8 (0.000247) UNIVERSAL::can, line 11 (0.000428) Test::Builder, line 13 (0.000413) Devel::Peek, line 8 (0.000693)
chromatic, <chromatic at wgz.org>
<chromatic at wgz.org>
Please report any bugs or feature requests to bug-devel-traceuse at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Devel-TraceUse. We can both track it there.
bug-devel-traceuse at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Devel::TraceUse
You can also look for information at:
Perl Hacks, hack #74
O'Reilly Media, 2006.
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Devel-TraceUse
CPAN Ratings
http://cpanratings.perl.org/d/Devel-TraceUse
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Devel-TraceUse
Search CPAN
http://search.cpan.org/dist/Devel-TraceUse
Copyright 2006 chromatic, most rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install DB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DB
CPAN shell
perl -MCPAN -e shell install DB
For more information on module installation, please visit the detailed CPAN module installation guide.