line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# $Id: Footer.pm,v 1.8 2003/12/24 20:38:54 oratrc Exp $ |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
package Oracle::Trace::Footer; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
19
|
use 5.008001; |
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
31
|
|
7
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
8
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
26
|
|
9
|
1
|
|
|
1
|
|
5
|
use Data::Dumper; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
54
|
|
10
|
1
|
|
|
1
|
|
4
|
use Oracle::Trace::Entry; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
249
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
our @ISA = qw(Oracle::Trace::Entry); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = do { my @r = (q$Revision: 1.8 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
my $DEBUG = $ENV{Oracle_Trace_DEBUG} || 0; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# Chunk |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub parse { |
21
|
1
|
|
|
1
|
1
|
2
|
my $self = shift; |
22
|
1
|
|
|
|
|
2
|
my $data = shift; |
23
|
1
|
50
|
|
|
|
4
|
$self->debug("incoming: ".Dumper($data)) if $DEBUG >= 3; |
24
|
1
|
|
|
|
|
1
|
my $i_line = 0; |
25
|
1
|
50
|
|
|
|
3
|
if ($data) { |
26
|
|
|
|
|
|
|
LINE: |
27
|
0
|
|
|
|
|
0
|
foreach my $line (split("\n", $data)) { |
28
|
0
|
0
|
|
|
|
0
|
$self->debug("line[".$i_line."] $line") if $DEBUG >= 2; |
29
|
0
|
|
|
|
|
0
|
$i_line++; |
30
|
0
|
0
|
|
|
|
0
|
next LINE if $line =~ /^\*\*\*\s+\d+/; |
31
|
0
|
|
|
|
|
0
|
push @{$self->{_data}{other}}, $line; |
|
0
|
|
|
|
|
0
|
|
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
} |
34
|
1
|
50
|
|
|
|
3
|
$self->debug("lines read: $i_line") if $DEBUG; |
35
|
1
|
|
|
|
|
4
|
return $self; |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
__END__ |