Mark Wong > Test-Parser > Test::Parser::Sar

Download:
Test-Parser-1.9.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Module Version: 1.7   Source  

NAME ^

Test::Parser::Sar - Perl module to parse output from sar.

SYNOPSIS ^

 use Test::Parser::Sar;

 my $parser = new Test::Parser::Sar;
 $parser->parse($text);

DESCRIPTION ^

This module transforms sar output into a hash that can be used to generate XML.

FUNCTIONS ^

Also see Test::Parser for functions available from the base class.

new()

Creates a new Test::Parser::Sar instance. Also calls the Test::Parser base class' new() routine. Takes no arguments.

data()

Returns a hash representation of the sar data.

Override of Test::Parser's default parse() routine to make it able to parse sar output. Support only reading from a file until a better parsing algorithm comes along.

to_xml()

Returns sar data transformed into XML.

AUTHOR ^

Mark Wong <markwkm@gmail.com>

COPYRIGHT ^

Copyright (C) 2006-2008 Mark Wong & Open Source Development Labs, Inc. All Rights Reserved.

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

SEE ALSO ^

Test::Parser