Justin DeVuyst > StackTrace-HiPerf-0.01 > StackTrace::HiPerf

Download:
StackTrace-HiPerf-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.01   Source  

NAME ^

StackTrace::HiPerf - High performance stacktraces

VERSION ^

0.01

SYNOPSIS ^

 use StackTrace::HiPerf;
 my $trace = StackTrace::HiPerf::trace();

DESCRIPTION ^

This module's purpose is to provide the most efficient way to generate a stacktrace. The traces it generates are delimited strings. Each entry contains the line number and the file name of the sub or eval invocation.

An example trace could look like this "79|Foo.pm||34|Bar.pm||56|Baz.pm||".

As its implemented now this module isn't very flexible or general purpose. If generalizing it proves useful then that may happen in the future.

FUNCTIONS ^

trace

Returns the current stack trace in string form. Takes an optional integer argument indicating at which stack level to start the trace.

AUTHOR ^

Justin DeVuyst, justin@devuyst.com

COPYRIGHT AND LICENSE ^

Copyright 2009 by Justin DeVuyst.

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.