lib/eris/dictionary/eris/debug.pm

filter: Statementstmt 75.0% 9 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 40.0% 2 / 5 Podpod 0.0% 0 / 1 totaltotal 61.1% 11 / 18 CC 1 SCAR 4.7
CC
1
Cov
75%
_build_priority
2.0
_build_enabled
2.0
hash
2.0
CRAP 1.6
« lib/eris/role/plugin.pm ↑ Summary lib/eris/role/context.pm »
1 package eris::dictionary::eris::debug;
2 # ABSTRACT: Debugging data in the event
3  
4 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 with qw(
7 eris::role::dictionary::hash
8 );
9  
10 1 our $VERSION = '0.008'; # VERSION
11  
12  
13 0 ▶sub _build_priority { 100 }
Subroutine _build_priority: not called CC=1 SCAR=6.9
14  
15  
16 0 ▶sub _build_enabled { 0 }
Subroutine _build_enabled: not called CC=1 SCAR=6.9
17  
18  
19 sub hash {
20 return {
21 0 ▶ eris_source => {
Subroutine hash: not called CC=1 SCAR=6.9
Pod undocumented
22 type => 'keyword',
23 description => 'Where the eris system contextualized this message',
24 },
25 timing => {
26 type => 'object',
27 description => 'Timing details for each step of the parsing',
28 properties => {
29 phase => { type => 'keyword' },
30 seconds => { type => 'float' },
31 }
32 },
33 total_time => {
34 type => 'double',
35 description => 'Total time to construct the log message',
36 },
37 };
38 }
39  
40  
41 1 1;
42  
43 __END__
44  
45 =pod
46  
47 =encoding UTF-8
48  
49 =head1 NAME
50  
51 eris::dictionary::eris::debug - Debugging data in the event
52  
53 =head1 VERSION
54  
55 version 0.008
56  
57 =head1 SYNOPSIS
58  
59 Dictionary containing the timing and raw data. Enable this dictionary on
60 a schema if you'd like to evaluate the parser performance.
61  
62 =head1 ATTRIBUTES
63  
64 =head2 priority
65  
66 Defaults to 100 to try to load last
67  
68 =head2 enabled
69  
70 Defaults to false, or disabled, set:
71  
72 ---
73 dictionary:
74 config:
75 eris_debug: { enabled: 1 }
76  
77 =for Pod::Coverage hash
78  
79 =head1 SEE ALSO
80  
81 L<eris::dictionary>, L<eris::role::dictionary>
82  
83 =head1 AUTHOR
84  
85 Brad Lhotsky <brad@divisionbyzero.net>
86  
87 =head1 COPYRIGHT AND LICENSE
88  
89 This software is Copyright (c) 2015 by Brad Lhotsky.
90  
91 This is free software, licensed under:
92  
93 The (three-clause) BSD License
94  
95 =cut
« lib/eris/role/plugin.pm ↑ Summary lib/eris/role/context.pm »