← 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:22:39 2012

Filename/2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/5.12.3/x86_64-linux/Scalar/Util.pm
StatementsExecuted 14 statements in 263µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1447326044141ms141msScalar::Util::::blessedScalar::Util::blessed (xsub)
834698665.6ms65.6msScalar::Util::::reftypeScalar::Util::reftype (xsub)
90022220.8ms20.8msScalar::Util::::looks_like_numberScalar::Util::looks_like_number (xsub)
157022172.16ms2.16msScalar::Util::::weakenScalar::Util::weaken (xsub)
8811111µs111µsScalar::Util::::isweakScalar::Util::isweak (xsub)
1213368µs68µsScalar::Util::::refaddrScalar::Util::refaddr (xsub)
11110µs15µsScalar::Util::::BEGIN@9Scalar::Util::BEGIN@9
0000s0sScalar::Util::::export_failScalar::Util::export_fail
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1# Scalar::Util.pm
2#
3# Copyright (c) 1997-2007 Graham Barr <gbarr@pobox.com>. All rights reserved.
4# This program is free software; you can redistribute it and/or
5# modify it under the same terms as Perl itself.
6
7package Scalar::Util;
8
93176µs220µs
# spent 15µs (10+5) within Scalar::Util::BEGIN@9 which was called: # once (10µs+5µs) by Moose::BEGIN@13 at line 9
use strict;
# spent 15µs making 1 call to Scalar::Util::BEGIN@9 # spent 5µs making 1 call to strict::import
101400nsrequire Exporter;
11160µsrequire List::Util; # List::Util loads the XS
12
1315µsour @ISA = qw(Exporter);
1412µsour @EXPORT_OK = qw(blessed dualvar reftype weaken isweak tainted readonly openhandle refaddr isvstring looks_like_number set_prototype);
151300nsour $VERSION = "1.25";
16112µs$VERSION = eval $VERSION;
# spent 2µs executing statements in string eval
17
181200nsour @EXPORT_FAIL;
19
201400nsunless (defined &weaken) {
21 push @EXPORT_FAIL, qw(weaken);
22}
231200nsunless (defined &isweak) {
24 push @EXPORT_FAIL, qw(isweak isvstring);
25}
261200nsunless (defined &isvstring) {
27 push @EXPORT_FAIL, qw(isvstring);
28}
29
30sub export_fail {
31 if (grep { /^(?:weaken|isweak)$/ } @_ ) {
32 require Carp;
33 Carp::croak("Weak references are not implemented in the version of perl");
34 }
35
36 if (grep { /^isvstring$/ } @_ ) {
37 require Carp;
38 Carp::croak("Vstrings are not implemented in the version of perl");
39 }
40
41 @_;
42}
43
4417µs1;
45
46__END__
 
# spent 141ms within Scalar::Util::blessed which was called 144732 times, avg 976ns/call: # 85383 times (85.3ms+0s) by Class::Accessor::Grouped::get_inherited at line 237 of Class/Accessor/Grouped.pm, avg 999ns/call # 27624 times (21.5ms+0s) by SQL::Abstract::_refkind at line 1275 of SQL/Abstract.pm, avg 779ns/call # 14485 times (14.0ms+0s) by DBIx::Class::Storage::DBIHacks::_resolve_ident_sources at line 443 of DBIx/Class/Storage/DBIHacks.pm, avg 967ns/call # 8019 times (10.0ms+0s) by DBIx::Class::Storage::DBI::_gen_sql_bind at line 1428 of DBIx/Class/Storage/DBI.pm, avg 1µs/call # 5332 times (7.55ms+0s) by DBIx::Class::ResultSource::_resolve_condition at line 1589 of DBIx/Class/ResultSource.pm, avg 1µs/call # 822 times (402µs+0s) by Class::Accessor::Grouped::__ANON__[/2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/Class/Accessor/Grouped.pm:810] at line 659 of Class/Accessor/Grouped.pm, avg 488ns/call # 390 times (305µs+0s) by Class::MOP::Mixin::HasMethods::add_method at line 62 of Class/MOP/Mixin/HasMethods.pm, avg 782ns/call # 359 times (201µs+0s) by Class::Accessor::Grouped::_mk_group_accessors at line 35 of Class/Accessor/Grouped.pm, avg 560ns/call # 224 times (180µs+0s) by Class::MOP::Mixin::meta or Class::MOP::Object::meta or Moose::Meta::Role::Application::RoleSummation::meta or Moose::Meta::Role::Application::ToClass::meta or Moose::Meta::Role::Application::ToInstance::meta or Moose::Meta::Role::Application::ToRole::meta or Moose::Meta::Role::Application::meta or Moose::Meta::Role::Composite::meta or Moose::Meta::Role::Method::Required::meta or Moose::Meta::Role::meta or Moose::Meta::TypeCoercion::Union::meta or Moose::Meta::TypeCoercion::meta or Moose::Meta::TypeConstraint::Class::meta or Moose::Meta::TypeConstraint::DuckType::meta or Moose::Meta::TypeConstraint::Enum::meta or Moose::Meta::TypeConstraint::Parameterizable::meta or Moose::Meta::TypeConstraint::Parameterized::meta or Moose::Meta::TypeConstraint::Registry::meta or Moose::Meta::TypeConstraint::Role::meta or Moose::Meta::TypeConstraint::Union::meta or Moose::Meta::TypeConstraint::meta or MooseX::Traits::__ANON__::SERIAL::1::meta or Tapper::MCP::Scheduler::Algorithm::meta at line 48 of Class/MOP/Method/Meta.pm, avg 803ns/call # 221 times (144µs+0s) by Class::Accessor::Grouped::set_inherited at line 290 of Class/Accessor/Grouped.pm, avg 650ns/call # 197 times (172µs+0s) by Class::MOP::Method::Accessor::new at line 29 of Class/MOP/Method/Accessor.pm, avg 873ns/call # 181 times (133µs+0s) by Class::MOP::Method::wrap at line 33 of Class/MOP/Method.pm, avg 735ns/call # 147 times (232µs+0s) by DBIx::Class::Row::insert at line 303 of DBIx/Class/Row.pm, avg 2µs/call # 133 times (88µs+0s) by Class::MOP::Mixin::HasAttributes::add_attribute at line 20 of Class/MOP/Mixin/HasAttributes.pm, avg 660ns/call # 131 times (121µs+0s) by Class::MOP::Mixin::HasMethods::get_method at line 122 of Class/MOP/Mixin/HasMethods.pm, avg 926ns/call # 131 times (94µs+0s) by Class::MOP::Attribute::attach_to_class at line 240 of Class/MOP/Attribute.pm, avg 715ns/call # 114 times (53µs+0s) by overload::AddrRef at line 96 of overload.pm, avg 465ns/call # 90 times (69µs+0s) by Class::MOP::class_of at line 65 of Class/MOP.pm, avg 764ns/call # 85 times (42µs+0s) by SQL::Translator::Parser::DBIx::Class::_resolve_deps at line 365 of SQL/Translator/Parser/DBIx/Class.pm, avg 498ns/call # 78 times (60µs+0s) by DBIx::Class::ResultSet::_result_class or DBIx::Class::ResultSet::result_source or DBIx::Class::ResultSource::View::is_virtual or DBIx::Class::ResultSource::View::view_definition or DBIx::Class::ResultSource::_columns or DBIx::Class::ResultSource::_ordered_columns or DBIx::Class::ResultSource::_primaries or DBIx::Class::ResultSource::_relationships or DBIx::Class::ResultSource::_unique_constraints or DBIx::Class::ResultSource::name or DBIx::Class::ResultSource::resultset_attributes or DBIx::Class::ResultSource::source_name or DBIx::Class::SQLMaker::limit_dialect or DBIx::Class::SQLMaker::name_sep or DBIx::Class::Storage::DBI::Cursor::sth or DBIx::Class::Storage::DBI::_conn_pid or DBIx::Class::Storage::DBI::_connect_info or DBIx::Class::Storage::DBI::_dbh or DBIx::Class::Storage::DBI::_dbh_autocommit or DBIx::Class::Storage::DBI::_dbh_details or DBIx::Class::Storage::DBI::_dbi_connect_info or DBIx::Class::Storage::DBI::_dbic_connect_attributes or DBIx::Class::Storage::DBI::_driver_determined or DBIx::Class::Storage::DBI::_sql_maker or DBIx::Class::Storage::DBI::_sql_maker_opts or DBIx::Class::Storage::DBI::disable_sth_caching or DBIx::Class::Storage::DBI::on_connect_call or DBIx::Class::Storage::DBI::on_connect_do or DBIx::Class::Storage::DBI::unsafe or DBIx::Class::Storage::debug or DBIx::Class::Storage::schema or DBIx::Class::Storage::transaction_depth at line 678 of Class/Accessor/Grouped.pm, avg 773ns/call # 58 times (87µs+0s) by Class::MOP::Class::_construct_instance at line 510 of Class/MOP/Class.pm, avg 1µs/call # 56 times (42µs+0s) by Class::MOP::Instance::BUILDARGS at line 23 of Class/MOP/Instance.pm, avg 746ns/call # 50 times (37µs+0s) by Moose::Util::TypeConstraints::find_type_constraint at line 312 of Moose/Util/TypeConstraints.pm, avg 750ns/call # 48 times (22µs+0s) by SQL::Translator::Parser::DBIx::Class::_resolve_deps at line 382 of SQL/Translator/Parser/DBIx/Class.pm, avg 462ns/call # 37 times (46µs+0s) by DBIx::Class::ResultSourceProxy::Table::table at line 84 of DBIx/Class/ResultSourceProxy/Table.pm, avg 1µs/call # 35 times (29µs+0s) by Class::MOP::Method::clone at line 135 of Class/MOP/Method.pm, avg 823ns/call # 33 times (33µs+0s) by Moose::Meta::TypeConstraint::Registry::add_type_constraint at line 51 of Moose/Meta/TypeConstraint/Registry.pm, avg 1µs/call # 33 times (18µs+0s) by Class::MOP::Object::meta at line 20 of Class/MOP/Object.pm, avg 558ns/call # 30 times (31µs+0s) by Class::MOP::Method::Constructor::new at line 23 of Class/MOP/Method/Constructor.pm, avg 1µs/call # 23 times (17µs+0s) by Class::MOP::Method::Wrapped::wrap at line 76 of Class/MOP/Method/Wrapped.pm, avg 722ns/call # 18 times (26µs+0s) by Class::MOP::Mixin::meta at line 16 of Class/MOP/Mixin.pm, avg 1µs/call # 17 times (9µs+0s) by Moose::Meta::TypeConstraint::_new at line 6 of (eval 87)[Eval/Closure.pm:125], avg 541ns/call # 16 times (10µs+0s) by Moose::Util::TypeConstraints::_create_type_constraint at line 565 of Moose/Util/TypeConstraints.pm, avg 606ns/call # 15 times (10µs+0s) by Moose::Meta::Role::Method::_new at line 6 of (eval 196)[Eval/Closure.pm:125], avg 693ns/call # 12 times (7µs+0s) by Moose::Meta::Method::_new at line 6 of (eval 170)[Eval/Closure.pm:125], avg 575ns/call # 9 times (5µs+0s) by Moose::Meta::Instance::_new at line 6 of (eval 164)[Eval/Closure.pm:125], avg 522ns/call # 8 times (8µs+0s) by Moose::Meta::Class::add_attribute at line 566 of Moose/Meta/Class.pm, avg 950ns/call # 8 times (7µs+0s) by Moose::Meta::Attribute::_new at line 6 of (eval 156)[Eval/Closure.pm:125], avg 850ns/call # 8 times (6µs+0s) by Moose::Meta::TypeConstraint::Class::_new at line 6 of (eval 101)[Eval/Closure.pm:125], avg 763ns/call # 6 times (6µs+0s) by Moose::Meta::Attribute::_process_isa_option at line 364 of Moose/Meta/Attribute.pm, avg 1µs/call # 4 times (10µs+0s) by Moose::Util::_apply_all_roles at line 152 of Moose/Util.pm, avg 3µs/call # 4 times (6µs+0s) by Moose::Meta::Role::apply at line 445 of Moose/Meta/Role.pm, avg 1µs/call # 4 times (6µs+0s) by Moose::Meta::Class::add_role at line 197 of Moose/Meta/Class.pm, avg 1µs/call # 4 times (6µs+0s) by Moose::Util::_apply_all_roles at line 156 of Moose/Util.pm, avg 1µs/call # 4 times (5µs+0s) by Moose::Util::_apply_all_roles at line 128 of Moose/Util.pm, avg 1µs/call # 4 times (4µs+0s) by Moose::Meta::Role::Application::ToClass::_new at line 6 of (eval 212)[Eval/Closure.pm:125], avg 1µs/call # 4 times (4µs+0s) by Moose::Meta::Role::add_attribute at line 245 of Moose/Meta/Role.pm, avg 1µs/call # 4 times (4µs+0s) by Moose::Meta::Class::add_role_application at line 210 of Moose/Meta/Class.pm, avg 1µs/call # 4 times (2µs+0s) by Moose::Meta::TypeConstraint::Role::_new at line 6 of (eval 103)[Eval/Closure.pm:125], avg 600ns/call # 4 times (2µs+0s) by Moose::Meta::Role::add_required_methods at line 267 of Moose/Meta/Role.pm, avg 550ns/call # 4 times (2µs+0s) by Moose::Meta::Role::_new at line 6 of (eval 189)[Eval/Closure.pm:125], avg 550ns/call # 4 times (2µs+0s) by Moose::Meta::TypeConstraint::Parameterizable::_new at line 6 of (eval 99)[Eval/Closure.pm:125], avg 500ns/call # 4 times (2µs+0s) by Moose::Meta::Role::Method::Required::_new at line 6 of (eval 198)[Eval/Closure.pm:125], avg 475ns/call # 3 times (5µs+0s) by Moose::Meta::Role::does_role at line 426 of Moose/Meta/Role.pm, avg 2µs/call # 3 times (4µs+0s) by Moose::Object::does at line 121 of Moose/Object.pm, avg 2µs/call # 3 times (2µs+0s) by Moose::Object::new at line 24 of Moose/Object.pm, avg 800ns/call # 2 times (4µs+0s) by Moose::Meta::Role::Attribute::attach_to_role at line 72 of Moose/Meta/Role/Attribute.pm, avg 2µs/call # once (3µs+0s) by Sub::Install::_CODELIKE at line 98 of Sub/Install.pm # once (900ns+0s) by Eval::Closure::Sandbox_161::__ANON__[(eval 265)[/2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/Eval/Closure.pm:125]:3] at line 3 of (eval 265)[Eval/Closure.pm:125] # once (800ns+0s) by Eval::Closure::Sandbox_157::__ANON__[(eval 259)[/2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/Eval/Closure.pm:125]:3] at line 3 of (eval 259)[Eval/Closure.pm:125]
sub Scalar::Util::blessed; # xsub
# spent 111µs within Scalar::Util::isweak which was called 88 times, avg 1µs/call: # 88 times (111µs+0s) by Class::MOP::metaclass_is_weak at line 58 of Class/MOP.pm, avg 1µs/call
sub Scalar::Util::isweak; # xsub
# spent 20.8ms within Scalar::Util::looks_like_number which was called 9002 times, avg 2µs/call: # 8989 times (20.8ms+0s) by DBIx::Class::Storage::DBI::SQLite::_dbi_attrs_for_bind at line 114 of DBIx/Class/Storage/DBI/SQLite.pm, avg 2µs/call # 13 times (22µs+0s) by SQL::Translator::Producer::_apply_default_value at line 56 of SQL/Translator/Producer.pm, avg 2µs/call
sub Scalar::Util::looks_like_number; # xsub
# spent 68µs within Scalar::Util::refaddr which was called 121 times, avg 564ns/call: # 114 times (57µs+0s) by overload::AddrRef at line 99 of overload.pm, avg 498ns/call # 6 times (9µs+0s) by DBIx::Class::Storage::DBI::_arm_global_destructor at line 194 of DBIx/Class/Storage/DBI.pm, avg 1µs/call # once (2µs+0s) by main::BEGIN@22 at line 34 of Test/Deep.pm
sub Scalar::Util::refaddr; # xsub
# spent 65.6ms within Scalar::Util::reftype which was called 83469 times, avg 785ns/call: # 82583 times (64.9ms+0s) by Class::Accessor::Grouped::get_inherited at line 237 of Class/Accessor/Grouped.pm, avg 786ns/call # 202 times (134µs+0s) by Sub::Install::_CODELIKE at line 98 of Sub/Install.pm, avg 663ns/call # 181 times (125µs+0s) by Class::MOP::Method::wrap at line 33 of Class/MOP/Method.pm, avg 691ns/call # 174 times (116µs+0s) by Eval::Closure::_validate_env at line 73 of Eval/Closure.pm, avg 665ns/call # 133 times (123µs+0s) by Eval::Closure::_canonicalize_source at line 49 of Eval/Closure.pm, avg 923ns/call # 114 times (58µs+0s) by overload::AddrRef at line 98 of overload.pm, avg 508ns/call # 81 times (65µs+0s) by Class::Accessor::Grouped::set_inherited at line 290 of Class/Accessor/Grouped.pm, avg 807ns/call # once (1µs+0s) by Test::MockModule::mock at line 54 of Test/MockModule.pm
sub Scalar::Util::reftype; # xsub
# spent 2.16ms within Scalar::Util::weaken which was called 1570 times, avg 1µs/call: # 367 times (270µs+0s) by Class::MOP::Method::attach_to_class at line 77 of Class/MOP/Method.pm, avg 736ns/call # 294 times (832µs+0s) by DBIx::Class::Storage::TxnScopeGuard::new at line 33 of DBIx/Class/Storage/TxnScopeGuard.pm, avg 3µs/call # 197 times (219µs+0s) by Class::MOP::Method::Accessor::new at line 40 of Class/MOP/Method/Accessor.pm, avg 1µs/call # 158 times (206µs+0s) by Class::MOP::Method::wrap at line 48 of Class/MOP/Method.pm, avg 1µs/call # 131 times (118µs+0s) by Class::MOP::Attribute::attach_to_class at line 242 of Class/MOP/Attribute.pm, avg 903ns/call # 98 times (93µs+0s) by Class::Accessor::Grouped::__ANON__[/2home/ss5/perl5/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/Class/Accessor/Grouped.pm:810] at line 784 of Class/Accessor/Grouped.pm, avg 952ns/call # 57 times (64µs+0s) by DBIx::Class::Schema::_register_source at line 1369 of DBIx/Class/Schema.pm, avg 1µs/call # 56 times (61µs+0s) by Class::MOP::Instance::new at line 47 of Class/MOP/Instance.pm, avg 1µs/call # 46 times (90µs+0s) by DBIx::Class::AccessorGroup::get_component_class at line 22 of DBIx/Class/AccessorGroup.pm, avg 2µs/call # 35 times (51µs+0s) by Class::MOP::Method::Meta::_generate_meta_method at line 29 of Class/MOP/Method/Meta.pm, avg 1µs/call # 35 times (28µs+0s) by Class::MOP::Method::clone at line 136 of Class/MOP/Method.pm, avg 789ns/call # 32 times (48µs+0s) by DBIx::Class::ResultSet::_result_class or DBIx::Class::ResultSet::result_source or DBIx::Class::ResultSource::View::is_virtual or DBIx::Class::ResultSource::View::view_definition or DBIx::Class::ResultSource::_columns or DBIx::Class::ResultSource::_ordered_columns or DBIx::Class::ResultSource::_primaries or DBIx::Class::ResultSource::_relationships or DBIx::Class::ResultSource::_unique_constraints or DBIx::Class::ResultSource::name or DBIx::Class::ResultSource::resultset_attributes or DBIx::Class::ResultSource::source_name or DBIx::Class::SQLMaker::limit_dialect or DBIx::Class::SQLMaker::name_sep or DBIx::Class::Storage::DBI::Cursor::sth or DBIx::Class::Storage::DBI::_conn_pid or DBIx::Class::Storage::DBI::_connect_info or DBIx::Class::Storage::DBI::_dbh or DBIx::Class::Storage::DBI::_dbh_autocommit or DBIx::Class::Storage::DBI::_dbh_details or DBIx::Class::Storage::DBI::_dbi_connect_info or DBIx::Class::Storage::DBI::_dbic_connect_attributes or DBIx::Class::Storage::DBI::_driver_determined or DBIx::Class::Storage::DBI::_sql_maker or DBIx::Class::Storage::DBI::_sql_maker_opts or DBIx::Class::Storage::DBI::disable_sth_caching or DBIx::Class::Storage::DBI::on_connect_call or DBIx::Class::Storage::DBI::on_connect_do or DBIx::Class::Storage::DBI::unsafe or DBIx::Class::Storage::debug or DBIx::Class::Storage::schema or DBIx::Class::Storage::transaction_depth at line 774 of Class/Accessor/Grouped.pm, avg 2µs/call # 30 times (29µs+0s) by Class::MOP::Method::Constructor::new at line 35 of Class/MOP/Method/Constructor.pm, avg 980ns/call # 6 times (12µ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:1298] at line 1284 of DBIx/Class/Storage/DBI.pm, avg 2µs/call # 6 times (5µs+0s) by DBIx::Class::Storage::DBI::_arm_global_destructor at line 196 of DBIx/Class/Storage/DBI.pm, avg 883ns/call # 6 times (5µs+0s) by DBIx::Class::Storage::set_schema at line 74 of DBIx/Class/Storage.pm, avg 800ns/call # 4 times (9µs+0s) by SQL::Translator::Parser::DBIx::Class::parse at line 39 of SQL/Translator/Parser/DBIx/Class.pm, avg 2µs/call # 4 times (8µs+0s) by Moose::Meta::Role::Application::ToClass::apply at line 33 of Moose/Meta/Role/Application/ToClass.pm, avg 2µs/call # 4 times (7µs+0s) by Moose::Meta::Role::Application::ToClass::apply at line 34 of Moose/Meta/Role/Application/ToClass.pm, avg 2µs/call # 2 times (5µs+0s) by Moose::Meta::Role::Attribute::attach_to_role at line 76 of Moose/Meta/Role/Attribute.pm, avg 2µs/call # once (3µ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:1300] at line 290 of DBI.pm # once (1µs+0s) by Test::MockModule::new at line 35 of Test/MockModule.pm
sub Scalar::Util::weaken; # xsub