line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Math::Histogram::Axis; |
2
|
7
|
|
|
7
|
|
41
|
use strict; |
|
7
|
|
|
|
|
15
|
|
|
7
|
|
|
|
|
293
|
|
3
|
7
|
|
|
7
|
|
37
|
use warnings; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
230
|
|
4
|
7
|
|
|
7
|
|
35
|
use Math::Histogram (); |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
141
|
|
5
|
7
|
|
|
7
|
|
106
|
use JSON::XS (); |
|
7
|
|
|
|
|
14
|
|
|
7
|
|
|
|
|
1044
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# rest of implementation in C, see XS.xs and mh_axis.h |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub serialize { |
10
|
2
|
|
|
2
|
1
|
55953
|
my $self = shift; |
11
|
2
|
|
|
|
|
16
|
my $hash = $self->_as_hash; |
12
|
2
|
|
|
|
|
65
|
return JSON::XS::encode_json($hash); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub deserialize { |
16
|
4
|
|
|
4
|
1
|
1519
|
my $class = shift; |
17
|
4
|
50
|
|
|
|
70
|
my $hash = JSON::XS::decode_json(ref($_[0]) ? ${$_[0]} : $_[0]); |
|
0
|
|
|
|
|
0
|
|
18
|
4
|
|
|
|
|
36
|
return $class->_from_hash($hash); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |