26 May 2011 06:07:58 UTC
- Distribution: Aspect-Library-Trace
- Module version: 1.00
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Testers (432 / 1 / 0)
- KwaliteeBus factor: 1
- 78.26% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (28.31KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionADAMK Adam Kennedy
Aspect::Library::Trace - Aspect-oriented function call tracing
use Aspect; use Aspect::Library::Trace; aspect Trace => call qr/^Foo::/; Foo::foo1 Foo::foo2 Foo::foo3 Foo::foo2 Foo::foo3 Foo::foo2 Foo::foo3
Aspect Oriented Programming is a programming paradigm that increases modularity by enabling improved separation of concerns.
It is most useful when dealing with cross-cutting concerns that would otherwise require code to be scattered around in many places.
Aspect::Library::Trace is an Aspect library that implements nested functional call tracing, in the style formerly offered by the
dprofpp -Tcommand provided by Devel::DProf (before that module became unusable).
The basic usage is very simple, just create an
Traceaspect as shown in the "SYNOPSIS".
Load Aspect, then Aspect::Library::Trace, then create the aspect using the
Any calls to functions described in the pointcut will be printed to
STDERR. Nesting is indicated via indenting.
Because the depth is tracked at a per-Aspect level, you should avoid creating more than one trace Aspect or the indenting levels will be mixed up and the output will become largely meaningless.
For even more convenience (and even less typing) you can use the following shorthand 1-line form.
use Aspect::Library::Trace qr/^Module::/;
When used this way, you also don't need to
Bugs should be reported via the CPAN bug tracker at
For other issues, contact the author.
Adam Kennedy <firstname.lastname@example.org>
Copyright 2009 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
Module Install Instructions
To install Aspect::Library::Trace, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Aspect::Library::Trace
For more information on module installation, please visit the detailed CPAN module installation guide.