Create a new object for a given Orace Trace file.
my $o_trc = Oracle::Trace->new($tracefile);
Initialise the object (check the tracefile).
Perform basic exists/read/etc. checks on given tracefile.
Returns object or undef.
$o_trc = $o_trc->checkfile($tfile);
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
my @oids = $o_trc->oids;
my $o_ftr = $o_trc->footer;
Return a simple test_report of the current object.
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.
Richard Foley, <firstname.lastname@example.org>
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.