line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Devel::ebug::Plugin::State; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1655
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
37
|
|
4
|
1
|
|
|
1
|
|
5
|
use base qw(Exporter); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
172
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our @EXPORT = qw(get_state set_state); |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub get_state { |
9
|
0
|
|
|
0
|
0
|
|
my( $self ) = @_; |
10
|
0
|
|
|
|
|
|
my $response = $self->talk( { command => "get_state", |
11
|
|
|
|
|
|
|
} ); |
12
|
0
|
|
|
|
|
|
return $response; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub set_state { |
16
|
0
|
|
|
0
|
0
|
|
my( $self, $state ) = @_; |
17
|
0
|
|
|
|
|
|
my $response = $self->talk( { command => "set_state", |
18
|
|
|
|
|
|
|
state => $state, |
19
|
|
|
|
|
|
|
} ); |
20
|
0
|
|
|
|
|
|
return $response; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |