← 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:59 2012

Filename/2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/Tapper/Schema/ReportsDB/Result/ReportFile.pm
StatementsExecuted 22 statements in 514µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.64ms5.94msTapper::Schema::ReportsDB::Result::ReportFile::::BEGIN@13Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@13
11117µs54µsTapper::Schema::ReportsDB::Result::ReportFile::::BEGIN@12Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@12
11111µs11µsTapper::Schema::ReportsDB::Result::ReportFile::::BEGIN@2Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@2
11110µs15µsTapper::Schema::ReportsDB::Result::ReportFile::::BEGIN@9Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@9
1119µs27µsTapper::Schema::ReportsDB::Result::ReportFile::::BEGIN@10Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@10
0000s0sTapper::Schema::ReportsDB::Result::ReportFile::::__ANON__[:31]Tapper::Schema::ReportsDB::Result::ReportFile::__ANON__[:31]
0000s0sTapper::Schema::ReportsDB::Result::ReportFile::::__ANON__[:32]Tapper::Schema::ReportsDB::Result::ReportFile::__ANON__[:32]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1package 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
BEGIN {
315µs $Tapper::Schema::ReportsDB::Result::ReportFile::AUTHORITY = 'cpan:AMD';
4129µs111µs}
5{
622µs $Tapper::Schema::ReportsDB::Result::ReportFile::VERSION = '0.001';
7}
8
9321µs220µ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
use strict;
# spent 15µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@9 # spent 5µs making 1 call to strict::import
10322µs244µ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
use warnings;
# spent 27µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@10 # spent 17µs making 1 call to warnings::import
11
12322µs291µ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
use parent 'DBIx::Class';
# spent 54µs making 1 call to Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@12 # spent 37µs making 1 call to parent::import
133271µs26.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
use Compress::Bzip2;
# spent 5.94ms making 1 call to Tapper::Schema::ReportsDB::Result::ReportFile::BEGIN@13 # spent 338µs making 1 call to Exporter::import
14
15119µs13.02ms__PACKAGE__->load_components(qw/FilterColumn InflateColumn::DateTime TimeStamp Core/);
# spent 3.02ms making 1 call to Class::C3::Componentised::load_components
16117µs1453µs__PACKAGE__->table("reportfile");
# spent 453µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table
17135µs11.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
29118µs157µs__PACKAGE__->set_primary_key("id");
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 }
34110µs1274µs );
# spent 274µs making 1 call to DBIx::Class::FilterColumn::filter_column
35114µs1249µ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
41128µs1;
42
43
44__END__