NAME

Devel::Module::Trace - Trace module origins

DESCRIPTION

This module traces use/require statements to print the origins of loaded modules

SYNOPSIS

    # load module
    use Devel::Module::Trace;
    
    # load other modules
    use Some::Other::Modules;
    require Even::More::Modules;
    
    # output results
    Devel::Module::Trace::print_pretty();
    
    # using directly
    perl -d:Module::Trace=print -M<Module> -e exit

METHODS

raw_result

raw_result()

returns an array with the raw result list.

save

save(<filename>)

save results to given file

print_pretty()

prints the results as ascii table to STDERR.

TODO

* add waterfall charts output

REPOSITORY

Git: http://github.com/sni/perl-devel-module-trace

SEE ALSO

L<Devel::OverrideGlobalRequire>

AUTHOR

Sven Nierlein, <nierlein at cpan.org>

COPYRIGHT & LICENSE

Copyright 2015 Sven Nierlein.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.