Profile of Tapper/Schema/ReportsDB/Result/ReportSection.pm

← Index
NYTProf Performance Profile «block view•line view•sub view»
For xt/tapper-mcp-scheduler-with-db-longrun.t
Run on Tue May 22 17:18:39 2012
Reported on Tue May 22 17:23:14 2012

Filename | /2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/Tapper/Schema/ReportsDB/Result/ReportSection.pm
Statements | Executed 18 statements in 736µs

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
1 | 1 | 1 | 10µs | 10µs | Tapper::Schema::ReportsDB::Result::ReportSection::::BEGIN@2Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@2
1 | 1 | 1 | 9µs | 48µs | Tapper::Schema::ReportsDB::Result::ReportSection::::BEGIN@12Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@12
1 | 1 | 1 | 9µs | 14µs | Tapper::Schema::ReportsDB::Result::ReportSection::::BEGIN@9Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@9
1 | 1 | 1 | 9µs | 25µs | Tapper::Schema::ReportsDB::Result::ReportSection::::BEGIN@10Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@10
0 | 0 | 0 | 0s | 0s | Tapper::Schema::ReportsDB::Result::ReportSection::::some_meta_availableTapper::Schema::ReportsDB::Result::ReportSection::some_meta_available

Call graph for these subroutines as a Graphviz dot language file.

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | package Tapper::Schema::ReportsDB::Result::ReportSection;
2 |  |  |  |  | # spent 10µs within Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@2 which was called: # once (10µs+0s) by Class::C3::Componentised::ensure_class_loaded at line 4 BEGIN {
3 | 1 | 5µs |  |  | $Tapper::Schema::ReportsDB::Result::ReportSection::AUTHORITY = 'cpan:AMD';
4 | 1 | 26µs | 1 | 10µs | } # spent 10µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@2
5 |  |  |  |  | {
6 | 2 | 1µs |  |  | $Tapper::Schema::ReportsDB::Result::ReportSection::VERSION = '0.001';
7 |  |  |  |  | }
8 |  |  |  |  |
9 | 3 | 20µs | 2 | 19µs | # spent 14µs (9+5) within Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@9 which was called: # once (9µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 9 use strict; # spent 14µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@9 # spent 5µs making 1 call to strict::import
10 | 3 | 21µs | 2 | 41µs | # spent 25µs (9+16) within Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@10 which was called: # once (9µs+16µs) by Class::C3::Componentised::ensure_class_loaded at line 10 use warnings; # spent 25µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@10 # spent 16µs making 1 call to warnings::import
11 |  |  |  |  |
12 | 3 | 447µs | 2 | 87µs | # spent 48µs (9+39) within Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@12 which was called: # once (9µs+39µs) by Class::C3::Componentised::ensure_class_loaded at line 12 use parent 'DBIx::Class'; # spent 48µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportSection::BEGIN@12 # spent 39µs making 1 call to parent::import
13 |  |  |  |  |
14 | 1 | 11µs | 1 | 245µs | __PACKAGE__->load_components("Core"); # spent 245µs making 1 call to Class::C3::Componentised::load_components
15 | 1 | 22µs | 1 | 444µs | __PACKAGE__->table("reportsection"); # spent 444µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table
16 | 1 | 85µs | 1 | 6.76ms | __PACKAGE__->add_columns # spent 6.76ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns
17 |  |  |  |  | (
18 |  |  |  |  | "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, },
19 |  |  |  |  | "report_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, },
20 |  |  |  |  | "succession", { data_type => "INT", default_value => undef, is_nullable => 1, size => 10, },
21 |  |  |  |  | "name", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
22 |  |  |  |  | # machine/os environment
23 |  |  |  |  | "osname", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
24 |  |  |  |  | "uname", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
25 |  |  |  |  | "flags", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
26 |  |  |  |  | "changeset", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
27 |  |  |  |  | "kernel", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
28 |  |  |  |  | "description", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
29 |  |  |  |  | "language_description", { data_type => "TEXT", default_value => undef, is_nullable => 1, },
30 |  |  |  |  | "cpuinfo", { data_type => "TEXT", default_value => undef, is_nullable => 1, },
31 |  |  |  |  | "bios", { data_type => "TEXT", default_value => undef, is_nullable => 1, },
32 |  |  |  |  | "ram", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 50, },
33 |  |  |  |  | "uptime", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 50, },
34 |  |  |  |  | "lspci", { data_type => "TEXT", default_value => undef, is_nullable => 1, },
35 |  |  |  |  | "lsusb", { data_type => "TEXT", default_value => undef, is_nullable => 1, },
36 |  |  |  |  | # context
37 |  |  |  |  | "ticket_url", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
38 |  |  |  |  | "wiki_url", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
39 |  |  |  |  | "planning_id", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
40 |  |  |  |  | "moreinfo_url", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
41 |  |  |  |  | "tags", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
42 |  |  |  |  | # xen info
43 |  |  |  |  | "xen_changeset", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
44 |  |  |  |  | "xen_hvbits", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 10, },
45 |  |  |  |  | "xen_dom0_kernel", { data_type => "TEXT", default_value => undef, is_nullable => 1, },
46 |  |  |  |  | "xen_base_os_description", { data_type => "TEXT", default_value => undef, is_nullable => 1, },
47 |  |  |  |  | "xen_guest_description", { data_type => "TEXT", default_value => undef, is_nullable => 1, },
48 |  |  |  |  | "xen_guest_flags", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
49 |  |  |  |  | "xen_version", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
50 |  |  |  |  | "xen_guest_test", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
51 |  |  |  |  | "xen_guest_start", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
52 |  |  |  |  | # kvm info
53 |  |  |  |  | "kvm_kernel", { data_type => "TEXT", default_value => undef, is_nullable => 1, },
54 |  |  |  |  | "kvm_base_os_description", { data_type => "TEXT", default_value => undef, is_nullable => 1, },
55 |  |  |  |  | "kvm_guest_description", { data_type => "TEXT", default_value => undef, is_nullable => 1, },
56 |  |  |  |  | "kvm_module_version", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
57 |  |  |  |  | "kvm_userspace_version", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
58 |  |  |  |  | "kvm_guest_flags", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
59 |  |  |  |  | "kvm_guest_test", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
60 |  |  |  |  | "kvm_guest_start", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
61 |  |  |  |  | # simnow info
62 |  |  |  |  | "simnow_svn_version", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
63 |  |  |  |  | "simnow_version", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255 },
64 |  |  |  |  | "simnow_svn_repository", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
65 |  |  |  |  | "simnow_device_interface_version", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
66 |  |  |  |  | "simnow_bsd_file", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
67 |  |  |  |  | "simnow_image_file", { data_type => "VARCHAR", default_value => undef, is_nullable => 1, size => 255, },
68 |  |  |  |  | );
69 |  |  |  |  |
70 | 1 | 32µs | 1 | 74µs | __PACKAGE__->set_primary_key("id"); # spent 74µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key
71 |  |  |  |  |
72 | 1 | 8µs | 1 | 186µs | __PACKAGE__->has_many ( report => 'Tapper::Schema::ReportsDB::Result::Report', { 'foreign.id' => 'self.report_id' }); # spent 186µs making 1 call to DBIx::Class::Relationship::HasMany::has_many
73 |  |  |  |  |
74 |  |  |  |  |
75 |  |  |  |  | # -------------------- methods on results --------------------
76 |  |  |  |  |
77 |  |  |  |  |
78 |  |  |  |  | sub some_meta_available
79 |  |  |  |  | {
80 |  |  |  |  | my ($self) = @_;
81 |  |  |  |  | my %cols = $self->get_columns;
82 |  |  |  |  |
83 |  |  |  |  | # this enumeration is a bit lame. anyway: copy the list from Tapper::TAP::Harness.@SECTION_HEADER_KEYS_GENERAL.
84 |  |  |  |  | # TODO: make it so (put list into schema and copy it from schema to Harness)
85 |  |  |  |  | my @meta_cols = qw/ram cpuinfo bios lspci lsusb uname osname uptime language-description
86 |  |  |  |  | flags kernel changeset description
87 |  |  |  |  | xen-version xen-changeset xen-dom0-kernel xen-base-os-description
88 |  |  |  |  | xen-guest-description xen-guest-test xen-guest-start xen-guest-flags xen-hvbits
89 |  |  |  |  | kvm-module-version kvm-userspace-version kvm-kernel
90 |  |  |  |  | kvm-base-os-description kvm-guest-description
91 |  |  |  |  | kvm-guest-test kvm-guest-start kvm-guest-flags
92 |  |  |  |  | simnow-svn-version
93 |  |  |  |  | simnow-version
94 |  |  |  |  | simnow-svn-repository
95 |  |  |  |  | simnow-device-interface-version
96 |  |  |  |  | simnow-bsd-file
97 |  |  |  |  | simnow-image-file
98 |  |  |  |  | ticket-url wiki-url planning-id
99 |  |  |  |  | tags
100 |  |  |  |  | /;
101 |  |  |  |  | @meta_cols = map { my $x = $_; $x =~ s/-/_/g; $x } @meta_cols;
102 |  |  |  |  | return 1 if grep { defined } @cols{@meta_cols};
103 |  |  |  |  | return 0;
104 |  |  |  |  | }
105 |  |  |  |  |
106 |  |  |  |  |
107 | 1 | 57µs |  |  | 1;
108 |  |  |  |  |
109 |  |  |  |  |
110 |  |  |  |  | __END__