Create a new object for a given Orace Trace file.
my $o_trc = Oracle::Trace->new($tracefile);
Initialise the object (check the tracefile).
$o_trc->init.
Perform basic exists/read/etc. checks on given tracefile.
Returns object or undef.
$o_trc = $o_trc->checkfile($tfile);
Return the Header object.
Header
my $o_hdr = $o_trc->header;
Return Entry objects which comply with given regex criteria.
my @o_ents = $o_trc->entries('type'=>'EXEC #\d+', 'key'=>dep, 'value'=>0);
Return the unique object ids for the currently known Entryies
Entry
my @oids = $o_trc->oids;
Return the Footer object
Footer
my $o_ftr = $o_trc->footer;
Return a simple test_report of the current object.
print $o_trc->test_report('string');
Return a simple string of descending order timings for the statements retrieved from the given objects.
my $s_str = $o_trc->mini_report($i_max, @o_objs);
Note that we use microsecond resolution for Oracle 9i and above and centisecond resolution otherwise
Oracle::Trace - Perl Module for parsing Oracle Trace files
use Oracle::Trace; print Oracle::Trace->new($tracefilename)->parse->test_report;
Module for parsing and describing an Oracle Trace file.
Currently the parsing and statistics are very rudimentary, and in certain matters may be fundamentally flawed - you have been warned!
Expect this to improve as further development takes place.
None by default.
http://www.rfi.net/oracle/trace/
Richard Foley, <oracle.trace@rfi.net>
Copyright (C) 2003 by Richard Foley
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Oracle::Trace, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Oracle::Trace
CPAN shell
perl -MCPAN -e shell install Oracle::Trace
For more information on module installation, please visit the detailed CPAN module installation guide.