Devel::Events::Filter::Stamp - Add time/context stamping to events


Devel-Events documentation  | view source Contained in the Devel-Events distribution.

Index


NAME

Top

Devel::Events::Filter::Stamp - Add time/context stamping to events

SYNOPSIS

Top

	use Devel::Events::Filter::Stamp;

	my $filter = Devel::Events::Filter::Stamp->new(
		handler => $handler,
	);

	Generator::Blah->new( handler => $filter );

DESCRIPTION

Top

This event filter will add timing and context information to the event.

The parameters are prepended so that upon hash assignment the event generator will get precedence.

METHODS

Top

filter_event @event

Prepends the output of stamp_data to @event

stamp_data

Returns the new fields, as detailed in STAMP DATA

STAMP DATA

Top

time

A fractional timestamp, from Time::HiRes.

Suitable for passing to DateTime unaltered. Other modules may require application of int.

pid

The value of $$

thread_id

Only included if threads are in use.

The current thread ID.


Devel-Events documentation  | view source Contained in the Devel-Events distribution.