Profile of DBIx/Class/ResultSource/Table.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:48 2012

Filename | /2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/DBIx/Class/ResultSource/Table.pm
Statements | Executed 8351 statements in 60.4ms

Subroutines
Calls | P | F | Exclusive Time | Inclusive Time | Subroutine
--- | --- | --- | --- | --- | ---
8337 | 4 | 3 | 41.4ms | 41.4ms | DBIx::Class::ResultSource::Table::::fromDBIx::Class::ResultSource::Table::from
1 | 1 | 1 | 9.60ms | 17.2ms | DBIx::Class::ResultSource::Table::::BEGIN@6DBIx::Class::ResultSource::Table::BEGIN@6
4090 | 7 | 2 | 4.92ms | 4.92ms | DBIx::Class::ResultSource::Table::::_columnsDBIx::Class::ResultSource::Table::_columns (xsub)
17 | 5 | 4 | 42µs | 42µs | DBIx::Class::ResultSource::Table::::source_nameDBIx::Class::ResultSource::Table::source_name (xsub)
15 | 6 | 5 | 30µs | 30µs | DBIx::Class::ResultSource::Table::::nameDBIx::Class::ResultSource::Table::name (xsub)
21 | 3 | 2 | 22µs | 22µs | DBIx::Class::ResultSource::Table::::_ordered_columnsDBIx::Class::ResultSource::Table::_ordered_columns (xsub)
1 | 1 | 1 | 14µs | 17µs | DBIx::Class::ResultSource::Table::::BEGIN@3DBIx::Class::ResultSource::Table::BEGIN@3
1 | 1 | 1 | 12µs | 107µs | DBIx::Class::ResultSource::Table::::BEGIN@8DBIx::Class::ResultSource::Table::BEGIN@8
1 | 1 | 1 | 8µs | 20µs | DBIx::Class::ResultSource::Table::::BEGIN@4DBIx::Class::ResultSource::Table::BEGIN@4
6 | 6 | 2 | 4µs | 4µs | DBIx::Class::ResultSource::Table::::_relationshipsDBIx::Class::ResultSource::Table::_relationships (xsub)
3 | 3 | 2 | 4µs | 4µs | DBIx::Class::ResultSource::Table::::_primariesDBIx::Class::ResultSource::Table::_primaries (xsub)
3 | 3 | 2 | 2µs | 2µs | DBIx::Class::ResultSource::Table::::_unique_constraintsDBIx::Class::ResultSource::Table::_unique_constraints (xsub)
2 | 2 | 2 | 2µs | 2µs | DBIx::Class::ResultSource::Table::::resultset_attributesDBIx::Class::ResultSource::Table::resultset_attributes (xsub)

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

Line | State ments | Time on line | Calls | Time in subs | Code
--- | --- | --- | --- | --- | ---
1 |  |  |  |  | package DBIx::Class::ResultSource::Table;
2 |  |  |  |  |
3 | 3 | 19µs | 2 | 21µs | # spent 17µs (14+4) within DBIx::Class::ResultSource::Table::BEGIN@3 which was called: # once (14µs+4µs) by DBIx::Class::ResultSourceProxy::Table::BEGIN@8 at line 3 use strict; # spent 17µs making 1 call to DBIx::Class::ResultSource::Table::BEGIN@3 # spent 4µs making 1 call to strict::import
4 | 3 | 19µs | 2 | 33µs | # spent 20µs (8+12) within DBIx::Class::ResultSource::Table::BEGIN@4 which was called: # once (8µs+12µs) by DBIx::Class::ResultSourceProxy::Table::BEGIN@8 at line 4 use warnings; # spent 20µs making 1 call to DBIx::Class::ResultSource::Table::BEGIN@4 # spent 12µs making 1 call to warnings::import
5 |  |  |  |  |
6 | 3 | 108µs | 1 | 17.2ms | # spent 17.2ms (9.60+7.63) within DBIx::Class::ResultSource::Table::BEGIN@6 which was called: # once (9.60ms+7.63ms) by DBIx::Class::ResultSourceProxy::Table::BEGIN@8 at line 6 use DBIx::Class::ResultSet; # spent 17.2ms making 1 call to DBIx::Class::ResultSource::Table::BEGIN@6
7 |  |  |  |  |
8 | 3 | 56µs | 2 | 202µs | # spent 107µs (12+95) within DBIx::Class::ResultSource::Table::BEGIN@8 which was called: # once (12µs+95µs) by DBIx::Class::ResultSourceProxy::Table::BEGIN@8 at line 8 use base qw/DBIx::Class/; # spent 107µs making 1 call to DBIx::Class::ResultSource::Table::BEGIN@8 # spent 95µs making 1 call to base::import
9 | 1 | 8µs | 1 | 0s | __PACKAGE__->load_components(qw/ResultSource/); # spent 8.55ms making 1 call to Class::C3::Componentised::load_components, recursion: max depth 2, sum of overlapping time 8.55ms
10 |  |  |  |  |
11 |  |  |  |  | =head1 NAME
12 |  |  |  |  |
13 |  |  |  |  | DBIx::Class::ResultSource::Table - Table object
14 |  |  |  |  |
15 |  |  |  |  | =head1 SYNOPSIS
16 |  |  |  |  |
17 |  |  |  |  | =head1 DESCRIPTION
18 |  |  |  |  |
19 |  |  |  |  | Table object that inherits from L<DBIx::Class::ResultSource>.
20 |  |  |  |  |
21 |  |  |  |  | =head1 METHODS
22 |  |  |  |  |
23 |  |  |  |  | =head2 from
24 |  |  |  |  |
25 |  |  |  |  | Returns the FROM entry for the table (i.e. the table name)
26 |  |  |  |  |
27 |  |  |  |  | =cut
28 |  |  |  |  |
29 | 8337 | 60.1ms | 1 | 5µs | # spent 41.4ms (41.4+5µs) within DBIx::Class::ResultSource::Table::from which was called 8337 times, avg 5µs/call: # 6730 times (32.9ms+5µs) by DBIx::Class::ResultSet::_resolved_attrs at line 3227 of DBIx/Class/ResultSet.pm, avg 5µs/call # 1313 times (8.00ms+0s) by DBIx::Class::Storage::DBI::_gen_sql_bind at line 1428 of DBIx/Class/Storage/DBI.pm, avg 6µs/call # 147 times (302µs+0s) by DBIx::Class::ResultSource::_resolve_join at line 1522 of DBIx/Class/ResultSource.pm, avg 2µs/call # 147 times (259µs+0s) by DBIx::Class::ResultSet::_chain_relationship at line 3091 of DBIx/Class/ResultSet.pm, avg 2µs/call sub from { shift->name; } # spent 5µs making 1 call to DBIx::Class::ResultSource::Table::name
30 |  |  |  |  |
31 | 1 | 5µs |  |  | 1;
32 |  |  |  |  |
33 |  |  |  |  | =head1 AUTHORS
34 |  |  |  |  |
35 |  |  |  |  | Matt S. Trout <mst@shadowcatsystems.co.uk>
36 |  |  |  |  |
37 |  |  |  |  | =head1 LICENSE
38 |  |  |  |  |
39 |  |  |  |  | You may distribute this code under the same terms as Perl itself.
40 |  |  |  |  |
41 |  |  |  |  | =cut
42 |  |  |  |  |
|  |  |  |  | # spent 4.92ms within DBIx::Class::ResultSource::Table::_columns which was called 4090 times, avg 1µs/call: # 1359 times (2.77ms+0s) by DBIx::Class::ResultSource::column_info at line 380 of DBIx/Class/ResultSource.pm, avg 2µs/call # 1359 times (1.15ms+0s) by DBIx::Class::ResultSource::column_info at line 383 of DBIx/Class/ResultSource.pm, avg 845ns/call # 1359 times (992µs+0s) by DBIx::Class::ResultSource::column_info at line 407 of DBIx/Class/ResultSource.pm, avg 730ns/call # 10 times (10µs+0s) by DBIx::Class::ResultSource::add_columns at line 317 of DBIx/Class/ResultSource.pm, avg 1µs/call # once (1µs+0s) by DBIx::Class::ResultSource::columns_info at line 455 of DBIx/Class/ResultSource.pm # once (700ns+0s) by DBIx::Class::ResultSource::has_column at line 357 of DBIx/Class/ResultSource.pm # once (500ns+0s) by DBIx::Class::ResultSource::add_columns at line 781 of Class/Accessor/Grouped.pm sub DBIx::Class::ResultSource::Table::_columns; # xsub
|  |  |  |  | # spent 22µs within DBIx::Class::ResultSource::Table::_ordered_columns which was called 21 times, avg 1µs/call: # 10 times (14µs+0s) by DBIx::Class::ResultSource::add_columns at line 314 of DBIx/Class/ResultSource.pm, avg 1µs/call # 10 times (8µs+0s) by DBIx::Class::ResultSource::add_columns at line 333 of DBIx/Class/ResultSource.pm, avg 780ns/call # once (500ns+0s) by DBIx::Class::ResultSource::add_columns at line 781 of Class/Accessor/Grouped.pm sub DBIx::Class::ResultSource::Table::_ordered_columns; # xsub
|  |  |  |  | # spent 4µs within DBIx::Class::ResultSource::Table::_primaries which was called 3 times, avg 1µs/call: # once (2µs+0s) by DBIx::Class::ResultSource::set_primary_key at line 595 of DBIx/Class/ResultSource.pm # once (1µs+0s) by DBIx::Class::ResultSource::primary_columns at line 616 of DBIx/Class/ResultSource.pm # once (600ns+0s) by DBIx::Class::ResultSource::set_primary_key at line 781 of Class/Accessor/Grouped.pm sub DBIx::Class::ResultSource::Table::_primaries; # xsub
|  |  |  |  | # spent 4µs within DBIx::Class::ResultSource::Table::_relationships which was called 6 times, avg 750ns/call: # once (1µs+0s) by DBIx::Class::ResultSource::relationships at line 1299 of DBIx/Class/ResultSource.pm # once (1µs+0s) by DBIx::Class::ResultSource::add_relationship at line 1254 of DBIx/Class/ResultSource.pm # once (700ns+0s) by DBIx::Class::ResultSource::add_relationship at line 1249 of DBIx/Class/ResultSource.pm # once (600ns+0s) by DBIx::Class::ResultSource::relationship_info at line 1319 of DBIx/Class/ResultSource.pm # once (600ns+0s) by DBIx::Class::ResultSource::has_relationship at line 1338 of DBIx/Class/ResultSource.pm # once (400ns+0s) by DBIx::Class::ResultSource::add_relationship at line 781 of Class/Accessor/Grouped.pm sub DBIx::Class::ResultSource::Table::_relationships; # xsub
|  |  |  |  | # spent 2µs within DBIx::Class::ResultSource::Table::_unique_constraints which was called 3 times, avg 800ns/call: # once (1µs+0s) by DBIx::Class::ResultSource::add_unique_constraint at line 723 of DBIx/Class/ResultSource.pm # once (1µs+0s) by DBIx::Class::ResultSource::unique_constraints at line 835 of DBIx/Class/ResultSource.pm # once (400ns+0s) by DBIx::Class::ResultSource::unique_constraints at line 781 of Class/Accessor/Grouped.pm sub DBIx::Class::ResultSource::Table::_unique_constraints; # xsub
|  |  |  |  | # spent 30µs within DBIx::Class::ResultSource::Table::name which was called 15 times, avg 2µs/call: # 10 times (17µs+0s) by DBIx::Class::ResultSourceProxy::Table::table at line 104 of DBIx/Class/ResultSourceProxy/Table.pm, avg 2µs/call # once (5µs+0s) by DBIx::Class::ResultSource::Table::from at line 29 # once (4µs+0s) by DBIx::Class::Storage::DBI::__ANON__[/2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/DBIx/Class/Storage/DBI.pm:2358] at line 2358 of DBIx/Class/Storage/DBI.pm # once (3µs+0s) by SQL::Translator::Parser::DBIx::Class::parse at line 91 of SQL/Translator/Parser/DBIx/Class.pm # once (900ns+0s) by SQL::Translator::Parser::DBIx::Class::parse at line 163 of SQL/Translator/Parser/DBIx/Class.pm # once (700ns+0s) by DBIx::Class::ResultSourceProxy::Table::table at line 781 of Class/Accessor/Grouped.pm sub DBIx::Class::ResultSource::Table::name; # xsub
|  |  |  |  | # spent 2µs within DBIx::Class::ResultSource::Table::resultset_attributes which was called 2 times, avg 1µs/call: # once (2µs+0s) by DBIx::Class::ResultSet::related_resultset at line 2906 of DBIx/Class/ResultSet.pm # once (400ns+0s) by DBIx::Class::ResultSet::related_resultset at line 781 of Class/Accessor/Grouped.pm sub DBIx::Class::ResultSource::Table::resultset_attributes; # xsub
|  |  |  |  | # spent 42µs within DBIx::Class::ResultSource::Table::source_name which was called 17 times, avg 2µs/call: # 13 times (38µs+0s) by DBIx::Class::Schema::load_namespaces at line 284 of DBIx/Class/Schema.pm, avg 3µs/call # once (2µs+0s) by SQL::Translator::Parser::DBIx::Class::parse at line 161 of SQL/Translator/Parser/DBIx/Class.pm # once (700ns+0s) by DBIx::Class::ResultSource::reverse_relationship_info at line 1398 of DBIx/Class/ResultSource.pm # once (700ns+0s) by DBIx::Class::ResultSource::reverse_relationship_info at line 1378 of DBIx/Class/ResultSource.pm # once (500ns+0s) by DBIx::Class::Schema::load_namespaces at line 781 of Class/Accessor/Grouped.pm sub DBIx::Class::ResultSource::Table::source_name; # xsub