I'm looking for a good Perl library that will trace method calls and dump them to a file as a program executes.
I know of Devel::Trace but it is quite limited and the output is super verbose.
Is there something better out there?
I'd like to be able to run something like the following from CLI.
perl -MTracer("My::Package::*", my_trace_file) my_large_modularized_program.pl
Ideally that would dump a list of method calls made in My::Package out to the file my_trace_file.
I tried googling for "perl trace sub calls". The first two hits seem appropriate: Debug::Trace and Debug::LTrace.
Use a profiler. Devel::NYTProf is pretty much defacto standard for that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With