StackTrace::HiPerf - High performance stacktraces


StackTrace-HiPerf documentation Contained in the StackTrace-HiPerf distribution.

Index


Code Index:

NAME

Top

StackTrace::HiPerf - High performance stacktraces

VERSION

Top

0.01

SYNOPSIS

Top

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

DESCRIPTION

Top

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

Top

trace

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

AUTHOR

Top

Justin DeVuyst, justin@devuyst.com

COPYRIGHT AND LICENSE

Top


StackTrace-HiPerf documentation Contained in the StackTrace-HiPerf distribution.
package StackTrace::HiPerf;

use 5.008;
use strict;
use warnings;
use XSLoader;

our $VERSION = '0.01';

XSLoader::load( 'StackTrace::HiPerf', $VERSION );

1;