line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojo::Debugbar::Monitor; |
2
|
1
|
|
|
1
|
|
481
|
use Mojo::Base -base; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
8
|
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
465
|
use Mojo::Server; |
|
1
|
|
|
|
|
36675
|
|
|
1
|
|
|
|
|
8
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has 'app' => sub { Mojo::Server->new->build_app('Mojo::HelloWorld') }, weak => 1; |
7
|
|
|
|
|
|
|
has 'icon' => ''; |
8
|
|
|
|
|
|
|
has 'items' => sub { [] }; |
9
|
|
|
|
|
|
|
has 'name' => 'Monitor'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head2 count |
12
|
|
|
|
|
|
|
Returns the number that will be shown in the title |
13
|
|
|
|
|
|
|
=cut |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub count { |
16
|
0
|
|
|
0
|
1
|
|
return scalar(@{ shift->items }); |
|
0
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=head2 render |
20
|
|
|
|
|
|
|
Returns the html |
21
|
|
|
|
|
|
|
=cut |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub render { |
24
|
0
|
|
|
0
|
1
|
|
return ''; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head2 stop |
28
|
|
|
|
|
|
|
Stop the monitor |
29
|
|
|
|
|
|
|
=cut |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub stop { |
32
|
0
|
|
|
0
|
1
|
|
shift->items([]); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head2 start |
36
|
|
|
|
|
|
|
Start the monitor |
37
|
|
|
|
|
|
|
=cut |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
0
|
1
|
|
sub start { |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
1; |