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