line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tapper::Schema::TestrunDB::Result::Benchs; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:TAPPER'; |
3
|
|
|
|
|
|
|
$Tapper::Schema::TestrunDB::Result::Benchs::VERSION = '5.0.9'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Tapper - containg benchmark head data |
5
|
|
|
|
|
|
|
|
6
|
7
|
|
|
7
|
|
2928
|
use strict; |
|
7
|
|
|
|
|
9
|
|
|
7
|
|
|
|
|
162
|
|
7
|
7
|
|
|
7
|
|
24
|
use warnings; |
|
7
|
|
|
|
|
8
|
|
|
7
|
|
|
|
|
143
|
|
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
19
|
use parent 'DBIx::Class'; |
|
7
|
|
|
|
|
8
|
|
|
7
|
|
|
|
|
26
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__PACKAGE__->load_components(qw/InflateColumn::DateTime Core/); |
12
|
|
|
|
|
|
|
__PACKAGE__->table('benchs'); |
13
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
14
|
|
|
|
|
|
|
'bench_id', { |
15
|
|
|
|
|
|
|
data_type => 'INT', |
16
|
|
|
|
|
|
|
default_value => undef, |
17
|
|
|
|
|
|
|
is_nullable => 0, |
18
|
|
|
|
|
|
|
size => 11, |
19
|
|
|
|
|
|
|
is_auto_increment => 1, |
20
|
|
|
|
|
|
|
extra => { |
21
|
|
|
|
|
|
|
unsigned => 1, |
22
|
|
|
|
|
|
|
}, |
23
|
|
|
|
|
|
|
}, |
24
|
|
|
|
|
|
|
'bench_unit_id', { |
25
|
|
|
|
|
|
|
data_type => 'TINYINT', |
26
|
|
|
|
|
|
|
default_value => undef, |
27
|
|
|
|
|
|
|
is_nullable => 0, |
28
|
|
|
|
|
|
|
size => 4, |
29
|
|
|
|
|
|
|
is_foreign_key => 1, |
30
|
|
|
|
|
|
|
extra => { |
31
|
|
|
|
|
|
|
unsigned => 1, |
32
|
|
|
|
|
|
|
}, |
33
|
|
|
|
|
|
|
}, |
34
|
|
|
|
|
|
|
'bench', { |
35
|
|
|
|
|
|
|
data_type => 'VARCHAR', |
36
|
|
|
|
|
|
|
default_value => undef, |
37
|
|
|
|
|
|
|
is_nullable => 0, |
38
|
|
|
|
|
|
|
size => 767, |
39
|
|
|
|
|
|
|
}, |
40
|
|
|
|
|
|
|
'active', { |
41
|
|
|
|
|
|
|
data_type => 'TINYINT', |
42
|
|
|
|
|
|
|
default_value => undef, |
43
|
|
|
|
|
|
|
is_nullable => 0, |
44
|
|
|
|
|
|
|
size => 4, |
45
|
|
|
|
|
|
|
extra => { |
46
|
|
|
|
|
|
|
unsigned => 1, |
47
|
|
|
|
|
|
|
}, |
48
|
|
|
|
|
|
|
}, |
49
|
|
|
|
|
|
|
'created_at', { |
50
|
|
|
|
|
|
|
data_type => 'TIMESTAMP', |
51
|
|
|
|
|
|
|
default_value => undef, |
52
|
|
|
|
|
|
|
is_nullable => 0, |
53
|
|
|
|
|
|
|
set_on_create => 1, |
54
|
|
|
|
|
|
|
}, |
55
|
|
|
|
|
|
|
); |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
(my $basepkg = __PACKAGE__) =~ s/::\w+$//; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('bench_id'); |
60
|
|
|
|
|
|
|
__PACKAGE__->add_unique_constraint( |
61
|
|
|
|
|
|
|
'ux_benchs_01' => ['bench'], |
62
|
|
|
|
|
|
|
); |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
65
|
|
|
|
|
|
|
bench_unit => "${basepkg}::BenchUnits", { 'foreign.bench_unit_id' => 'self.bench_unit_id' }, |
66
|
|
|
|
|
|
|
); |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
__PACKAGE__->has_many ( |
69
|
|
|
|
|
|
|
bench_value => "${basepkg}::BenchValues", { 'foreign.bench_id' => 'self.bench_id' }, |
70
|
|
|
|
|
|
|
); |
71
|
|
|
|
|
|
|
__PACKAGE__->has_many ( |
72
|
|
|
|
|
|
|
bench_additional_type_relation => "${basepkg}::BenchAdditionalTypeRelations", { 'foreign.bench_id' => 'self.bench_id' }, |
73
|
|
|
|
|
|
|
); |
74
|
|
|
|
|
|
|
__PACKAGE__->has_many ( |
75
|
|
|
|
|
|
|
bench_backup_value => "${basepkg}::BenchBackupValues", { 'foreign.bench_id' => 'self.bench_id' }, |
76
|
|
|
|
|
|
|
); |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
1; |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
__END__ |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=pod |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=encoding UTF-8 |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 NAME |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Tapper::Schema::TestrunDB::Result::Benchs - Tapper - containg benchmark head data |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 AUTHORS |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=over 4 |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=item * |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
AMD OSRC Tapper Team <tapper@amd64.org> |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=item * |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Tapper Team <tapper-ops@amazon.com> |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=back |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Advanced Micro Devices, Inc.. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
This is free software, licensed under: |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
The (two-clause) FreeBSD License |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=cut |