line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::Result::BenchUnits; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::Result::BenchUnits::VERSION = '5.0.9'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - units for benchmark data points |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
3063
|
use strict; |
|
7
|
|
|
|
|
12
|
|
|
7
|
|
|
|
|
170
|
|
7
|
7
|
|
|
7
|
|
21
|
use warnings; |
|
7
|
|
|
|
|
9
|
|
|
7
|
|
|
|
|
145
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
21
|
use parent 'DBIx::Class'; |
|
7
|
|
|
|
|
9
|
|
|
7
|
|
|
|
|
27
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->load_components(qw/InflateColumn::DateTime Core/); |
12
|
|
|
|
|
|
|
__PACKAGE__->table('bench_units'); |
13
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
14
|
|
|
|
|
|
|
'bench_unit_id', { |
15
|
|
|
|
|
|
|
data_type => 'TINYINT', |
16
|
|
|
|
|
|
|
default_value => undef, |
17
|
|
|
|
|
|
|
is_nullable => 0, |
18
|
|
|
|
|
|
|
size => 4, |
19
|
|
|
|
|
|
|
is_auto_increment => 1, |
20
|
|
|
|
|
|
|
extra => { |
21
|
|
|
|
|
|
|
unsigned => 1, |
22
|
|
|
|
|
|
|
}, |
23
|
|
|
|
|
|
|
}, |
24
|
|
|
|
|
|
|
'bench_unit', { |
25
|
|
|
|
|
|
|
data_type => 'VARCHAR', |
26
|
|
|
|
|
|
|
default_value => undef, |
27
|
|
|
|
|
|
|
is_nullable => 0, |
28
|
|
|
|
|
|
|
size => 64, |
29
|
|
|
|
|
|
|
}, |
30
|
|
|
|
|
|
|
'created_at', { |
31
|
|
|
|
|
|
|
data_type => 'TIMESTAMP', |
32
|
|
|
|
|
|
|
default_value => undef, |
33
|
|
|
|
|
|
|
is_nullable => 0, |
34
|
|
|
|
|
|
|
set_on_create => 1, |
35
|
|
|
|
|
|
|
}, |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
(my $basepkg = __PACKAGE__) =~ s/::\w+$//; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('bench_unit_id'); |
41
|
|
|
|
|
|
|
__PACKAGE__->add_unique_constraint( |
42
|
|
|
|
|
|
|
'ux_bench_units_01' => ['bench_unit'], |
43
|
|
|
|
|
|
|
); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__PACKAGE__->has_many ( |
46
|
|
|
|
|
|
|
benchs => "${basepkg}::Benchs", { 'foreign.bench_unit_id' => 'self.bench_unit_id' }, |
47
|
|
|
|
|
|
|
); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__END__ |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=pod |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=encoding UTF-8 |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 NAME |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::Result::BenchUnits - Tapper - units for benchmark data points |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 AUTHORS |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=over 4 |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=item * |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item * |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=back |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Advanced Micro Devices, Inc.. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This is free software, licensed under: |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=cut |