← Index
NYTProf Performance Profile   « line view »
For ./move_planets.pl
  Run on Tue Jan 23 21:11:41 2024
Reported on Tue Jan 23 21:12:47 2024

Filename/aoa_test/cron/dbsetup.pl
StatementsExecuted 7 statements in 424µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1112.29ms10.3msmain::::BEGIN@8main::BEGIN@8
22211µs20.1msmain::::db_setupmain::db_setup
11110µs14µsmain::::BEGIN@6main::BEGIN@6
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1#!/usr/local/bin/perl -wT
2#
3# $Id: dbsetup.pl 601 2020-06-07 23:15:37Z tiggr $
4#
5
6230µs217µs
# spent 14µs (10+3) within main::BEGIN@6 which was called: # once (10µs+3µs) by main::RUNTIME at line 6
use strict;
# spent 14µs making 1 call to main::BEGIN@6 # spent 3µs making 1 call to strict::import
7
82366µs210.3ms
# spent 10.3ms (2.29+8.02) within main::BEGIN@8 which was called: # once (2.29ms+8.02ms) by main::RUNTIME at line 8
use CGI::Carp;
# spent 10.3ms making 1 call to main::BEGIN@8 # spent 42µs making 1 call to CGI::Carp::import
9
10
# spent 20.1ms (11µs+20.1) within main::db_setup which was called 2 times, avg 10.0ms/call: # once (6µs+19.4ms) by main::RUNTIME at line 12 of /aoa_test/cron/utils/utils.pl # once (5µs+634µs) by main::RUNTIME at line 33 of /server-root/ashesofangels.com/htdocs/test/cron/tick/move_planets.pl
sub db_setup {
11# return db_open("aoa_pr","localhost","aoa","aoa123") || carp "Can't connect to server: $DBI::errstr";
12226µs220.1ms return db_open("test","localhost","aoa","aoa123") || carp "Can't connect to server: $DBI::errstr";
# spent 20.1ms making 2 calls to main::db_open, avg 10.0ms/call
13}
14
1512µs1;