| Filename | /2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/Tapper/Schema/ReportsDB/Result/ReportFile.pm |
| Statements | Executed 22 statements in 514µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 2.64ms | 5.94ms | Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@13 |
| 1 | 1 | 1 | 17µs | 54µs | Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@12 |
| 1 | 1 | 1 | 11µs | 11µs | Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@2 |
| 1 | 1 | 1 | 10µs | 15µs | Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@9 |
| 1 | 1 | 1 | 9µs | 27µs | Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@10 |
| 0 | 0 | 0 | 0s | 0s | Tapper::Schema::ReportsDB::Result::ReportFile::__ANON__[:31] |
| 0 | 0 | 0 | 0s | 0s | Tapper::Schema::ReportsDB::Result::ReportFile::__ANON__[:32] |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | package Tapper::Schema::ReportsDB::Result::ReportFile; | ||||
| 2 | # spent 11µs within Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@2 which was called:
# once (11µs+0s) by Class::C3::Componentised::ensure_class_loaded at line 4 | ||||
| 3 | 1 | 5µs | $Tapper::Schema::ReportsDB::Result::ReportFile::AUTHORITY = 'cpan:AMD'; | ||
| 4 | 1 | 29µs | 1 | 11µs | } # spent 11µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@2 |
| 5 | { | ||||
| 6 | 2 | 2µs | $Tapper::Schema::ReportsDB::Result::ReportFile::VERSION = '0.001'; | ||
| 7 | } | ||||
| 8 | |||||
| 9 | 3 | 21µs | 2 | 20µs | # spent 15µs (10+5) within Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@9 which was called:
# once (10µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 9 # spent 15µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@9
# spent 5µs making 1 call to strict::import |
| 10 | 3 | 22µs | 2 | 44µs | # spent 27µs (9+17) within Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@10 which was called:
# once (9µs+17µs) by Class::C3::Componentised::ensure_class_loaded at line 10 # spent 27µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@10
# spent 17µs making 1 call to warnings::import |
| 11 | |||||
| 12 | 3 | 22µs | 2 | 91µs | # spent 54µs (17+37) within Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@12 which was called:
# once (17µs+37µs) by Class::C3::Componentised::ensure_class_loaded at line 12 # spent 54µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@12
# spent 37µs making 1 call to parent::import |
| 13 | 3 | 271µs | 2 | 6.28ms | # spent 5.94ms (2.64+3.30) within Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@13 which was called:
# once (2.64ms+3.30ms) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 5.94ms making 1 call to Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@13
# spent 338µs making 1 call to Exporter::import |
| 14 | |||||
| 15 | 1 | 19µs | 1 | 3.02ms | __PACKAGE__->load_components(qw/FilterColumn InflateColumn::DateTime TimeStamp Core/); # spent 3.02ms making 1 call to Class::C3::Componentised::load_components |
| 16 | 1 | 17µs | 1 | 453µs | __PACKAGE__->table("reportfile"); # spent 453µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 17 | 1 | 35µs | 1 | 1.82ms | __PACKAGE__->add_columns # spent 1.82ms making 1 call to DBIx::Class::TimeStamp::add_columns |
| 18 | ( | ||||
| 19 | "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_auto_increment => 1, }, | ||||
| 20 | "report_id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11, is_foreign_key => 1, }, | ||||
| 21 | "filename", { data_type => "VARCHAR", default_value => "", is_nullable => 1, size => 255, }, | ||||
| 22 | "contenttype", { data_type => "VARCHAR", default_value => "", is_nullable => 1, size => 255, }, | ||||
| 23 | "filecontent", { data_type => "LONGBLOB", default_value => "", is_nullable => 0, }, | ||||
| 24 | "is_compressed", { data_type => "INT", default_value => 0, is_nullable => 0, }, | ||||
| 25 | "created_at", { data_type => "DATETIME", default_value => undef, is_nullable => 0, set_on_create => 1, }, | ||||
| 26 | "updated_at", { data_type => "DATETIME", default_value => undef, is_nullable => 0, set_on_create => 1, set_on_update => 1, }, | ||||
| 27 | ); | ||||
| 28 | |||||
| 29 | 1 | 18µs | 1 | 57µs | __PACKAGE__->set_primary_key("id"); # spent 57µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 30 | __PACKAGE__->filter_column('filecontent', { | ||||
| 31 | filter_from_storage => sub { my ($row, $element) = @_; return $row->is_compressed ? memBunzip( $element ) : $element }, | ||||
| 32 | filter_to_storage => sub { my ($row, $element) = @_; $row->is_compressed( 1 ); memBzip( $element ); }, | ||||
| 33 | } | ||||
| 34 | 1 | 10µs | 1 | 274µs | ); # spent 274µs making 1 call to DBIx::Class::FilterColumn::filter_column |
| 35 | 1 | 14µs | 1 | 249µs | __PACKAGE__->belongs_to ( report => 'Tapper::Schema::ReportsDB::Result::Report', { 'foreign.id' => 'self.report_id' }); # spent 249µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 36 | |||||
| 37 | |||||
| 38 | # -------------------- methods on results -------------------- | ||||
| 39 | |||||
| 40 | |||||
| 41 | 1 | 28µs | 1; | ||
| 42 | |||||
| 43 | |||||
| 44 | __END__ |