line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Google::Closure::Type::Stats; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
17
|
use Moose; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
51
|
|
4
|
3
|
|
|
3
|
|
20557
|
use MooseX::Types::Moose qw( Str Int ); |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
41
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has original_size => ( |
7
|
|
|
|
|
|
|
is => 'ro', |
8
|
|
|
|
|
|
|
isa => Int, |
9
|
|
|
|
|
|
|
init_arg => 'originalSize', |
10
|
|
|
|
|
|
|
required => 1, |
11
|
|
|
|
|
|
|
); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has compressed_size => ( |
14
|
|
|
|
|
|
|
is => 'ro', |
15
|
|
|
|
|
|
|
isa => Int, |
16
|
|
|
|
|
|
|
init_arg => 'compressedSize', |
17
|
|
|
|
|
|
|
required => 1, |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
has original_gzip_size => ( |
21
|
|
|
|
|
|
|
is => 'ro', |
22
|
|
|
|
|
|
|
isa => Int, |
23
|
|
|
|
|
|
|
init_arg => 'originalGzipSize', |
24
|
|
|
|
|
|
|
required => 1, |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
has compressed_gzip_size => ( |
28
|
|
|
|
|
|
|
is => 'ro', |
29
|
|
|
|
|
|
|
isa => Int, |
30
|
|
|
|
|
|
|
init_arg => 'compressedGzipSize', |
31
|
|
|
|
|
|
|
required => 1, |
32
|
|
|
|
|
|
|
); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
has compile_time => ( |
35
|
|
|
|
|
|
|
is => 'ro', |
36
|
|
|
|
|
|
|
isa => Int, |
37
|
|
|
|
|
|
|
init_arg => 'compileTime', |
38
|
|
|
|
|
|
|
required => 1, |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
3
|
|
|
3
|
|
16548
|
no Moose; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
20
|
|
43
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 NAME |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
WebService::Google::Closure::Type::Stats - Statistics from compilation |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 $stats->original_size |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Number of bytes of the submitted code. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 $stats->compressed_size |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Number of bytes of the compiled javascript code. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 $stats->original_gzip_size |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Number of bytes of the submitted code when compressed with gzip. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 $stats->compressed_gzip_size |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Number of bytes of the compiled javascript code when compressed with gzip. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head2 $stats->compile_time |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Time spent compiling the javascript code. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Copyright 2010-2011 Magnus Erixzon. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
79
|
|
|
|
|
|
|
under the terms of either: the GNU General Public License as published |
80
|
|
|
|
|
|
|
by the Free Software Foundation; or the Artistic License. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
See http://dev.perl.org/licenses/ for more information. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=cut |