| Filename | /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/logger.pm | 
| Statements | Executed 27159 statements in 181ms | 
| Calls | P | F | Exclusive Time | Inclusive Time | Subroutine | 
|---|---|---|---|---|---|
| 1774 | 3 | 1 | 70.8ms | 70.8ms | installer::logger::CORE:match (opcode) | 
| 905 | 4 | 1 | 38.6ms | 145ms | installer::logger::_get_time_string | 
| 905 | 1 | 1 | 35.2ms | 106ms | installer::logger::_convert_timestring | 
| 579 | 31 | 13 | 12.4ms | 105ms | installer::logger::include_header_into_logfile | 
| 419 | 59 | 7 | 6.53ms | 7.67ms | installer::logger::print_message | 
| 318 | 33 | 5 | 6.18ms | 58.1ms | installer::logger::include_timestamp_into_logfile | 
| 1 | 1 | 1 | 4.67ms | 5.30ms | installer::logger::BEGIN@36 | 
| 419 | 1 | 1 | 1.13ms | 1.13ms | installer::logger::CORE:print (opcode) | 
| 1 | 1 | 1 | 615µs | 632µs | installer::logger::BEGIN@30 | 
| 1 | 1 | 1 | 522µs | 522µs | installer::logger::log_hashref | 
| 1 | 1 | 1 | 459µs | 459µs | installer::logger::copy_globalinfo_into_logfile | 
| 7 | 7 | 4 | 145µs | 552µs | installer::logger::globallog | 
| 1 | 1 | 1 | 24µs | 28µs | installer::logger::BEGIN@35 | 
| 1 | 1 | 1 | 21µs | 238µs | installer::logger::stoptime | 
| 1 | 1 | 1 | 21µs | 47µs | installer::logger::BEGIN@31 | 
| 1 | 1 | 1 | 19µs | 144µs | installer::logger::BEGIN@33 | 
| 1 | 1 | 1 | 4µs | 4µs | installer::logger::starttime | 
| 0 | 0 | 0 | 0s | 0s | installer::logger::print_error | 
| 0 | 0 | 0 | 0s | 0s | installer::logger::print_warning | 
| Line | State ments | Time on line | Calls | Time in subs | Code | 
|---|---|---|---|---|---|
| 1 | #************************************************************************* | ||||
| 2 | # | ||||
| 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||||
| 4 | # | ||||
| 5 | # Copyright 2000, 2010 Oracle and/or its affiliates. | ||||
| 6 | # | ||||
| 7 | # OpenOffice.org - a multi-platform office productivity suite | ||||
| 8 | # | ||||
| 9 | # This file is part of OpenOffice.org. | ||||
| 10 | # | ||||
| 11 | # OpenOffice.org is free software: you can redistribute it and/or modify | ||||
| 12 | # it under the terms of the GNU Lesser General Public License version 3 | ||||
| 13 | # only, as published by the Free Software Foundation. | ||||
| 14 | # | ||||
| 15 | # OpenOffice.org is distributed in the hope that it will be useful, | ||||
| 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
| 18 | # GNU Lesser General Public License version 3 for more details | ||||
| 19 | # (a copy is included in the LICENSE file that accompanied this code). | ||||
| 20 | # | ||||
| 21 | # You should have received a copy of the GNU Lesser General Public License | ||||
| 22 | # version 3 along with OpenOffice.org. If not, see | ||||
| 23 | # <http://www.openoffice.org/license.html> | ||||
| 24 | # for a copy of the LGPLv3 License. | ||||
| 25 | # | ||||
| 26 | #************************************************************************* | ||||
| 27 | |||||
| 28 | package installer::logger; | ||||
| 29 | |||||
| 30 | 2 | 128µs | 2 | 650µs | # spent 632µs (615+18) within installer::logger::BEGIN@30 which was called:
#    once (615µs+18µs) by installer::files::BEGIN@34 at line 30 # spent   632µs making 1 call to installer::logger::BEGIN@30
# spent    18µs making 1 call to strict::import | 
| 31 | 2 | 75µs | 2 | 72µs | # spent 47µs (21+26) within installer::logger::BEGIN@31 which was called:
#    once (21µs+26µs) by installer::files::BEGIN@34 at line 31 # spent    47µs making 1 call to installer::logger::BEGIN@31
# spent    26µs making 1 call to warnings::import | 
| 32 | |||||
| 33 | 2 | 63µs | 2 | 268µs | # spent 144µs (19+125) within installer::logger::BEGIN@33 which was called:
#    once (19µs+125µs) by installer::files::BEGIN@34 at line 33 # spent   144µs making 1 call to installer::logger::BEGIN@33
# spent   124µs making 1 call to base::import | 
| 34 | |||||
| 35 | 2 | 63µs | 2 | 32µs | # spent 28µs (24+4) within installer::logger::BEGIN@35 which was called:
#    once (24µs+4µs) by installer::files::BEGIN@34 at line 35 # spent    28µs making 1 call to installer::logger::BEGIN@35
# spent     4µs making 1 call to UNIVERSAL::import | 
| 36 | 2 | 6.27ms | 2 | 5.31ms | # spent 5.30ms (4.67+628µs) within installer::logger::BEGIN@36 which was called:
#    once (4.67ms+628µs) by installer::files::BEGIN@34 at line 36 # spent  5.30ms making 1 call to installer::logger::BEGIN@36
# spent     6µs making 1 call to UNIVERSAL::import | 
| 37 | |||||
| 38 | 1 | 7µs | our @EXPORT_OK = qw( | ||
| 39 | include_header_into_logfile | ||||
| 40 | include_timestamp_into_logfile | ||||
| 41 | log_hashref | ||||
| 42 | globallog | ||||
| 43 | copy_globalinfo_into_logfile | ||||
| 44 | starttime | ||||
| 45 | stoptime | ||||
| 46 | print_message | ||||
| 47 | print_warning | ||||
| 48 | print_error | ||||
| 49 | ); | ||||
| 50 | |||||
| 51 | 1 | 500ns | my $starttime; | ||
| 52 | |||||
| 53 | #################################################### | ||||
| 54 | # Including header files into the logfile | ||||
| 55 | #################################################### | ||||
| 56 | |||||
| 57 | sub include_header_into_logfile | ||||
| 58 | # spent 105ms (12.4+92.1) within installer::logger::include_header_into_logfile which was called 579 times, avg 181µs/call:
# 110 times (1.47ms+11.3ms) by installer::windows::msiglobal::get_guid_list at line 1004 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm, avg 116µs/call
# 109 times (2.70ms+20.1ms) by installer::windows::msiglobal::create_msi_database at line 477 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm, avg 209µs/call
# 109 times (2.49ms+19.9ms) by installer::windows::msiglobal::write_summary_into_msi_database at line 708 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm, avg 205µs/call
# 109 times (2.52ms+19.1ms) by installer::run at line 1563 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm, avg 199µs/call
# 109 times (2.46ms+17.4ms) by installer::run at line 1572 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm, avg 182µs/call
#   5 times (133µs+551µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 349 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 137µs/call
#   2 times (50µs+270µs) by installer::scppatchsoname::resolving_patchsoname_flag at line 147 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/scppatchsoname.pm, avg 160µs/call
#   2 times (48µs+271µs) by installer::scpzipfiles::resolving_scpzip_replace_flag at line 81 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/scpzipfiles.pm, avg 160µs/call
#   2 times (45µs+243µs) by installer::scriptitems::get_Source_Directory_For_Files_From_Includepathlist at line 1102 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/scriptitems.pm, avg 144µs/call
#      once (29µs+191µs) by installer::windows::msiglobal::generate_cab_file_list at line 170 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (24µs+186µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 58 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm
#      once (35µs+172µs) by installer::packagelist::log_packages_content at line 685 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/packagelist.pm
#      once (30µs+175µs) by installer::archivefiles::resolving_archive_flag at line 159 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/archivefiles.pm
#      once (24µs+179µs) by installer::windows::msiglobal::execute_packaging at line 1298 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (24µs+178µs) by installer::worker::put_scpactions_into_installset at line 908 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#      once (29µs+172µs) by installer::control::check_logfile at line 396 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/control.pm
#      once (23µs+177µs) by installer::windows::msiglobal::create_transforms at line 765 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (24µs+173µs) by installer::windows::msiglobal::rename_msi_database_in_installset at line 957 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (26µs+161µs) by installer::packagelist::collectpackages at line 629 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/packagelist.pm
#      once (26µs+143µs) by installer::worker::resolving_hidden_flag at line 1313 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#      once (29µs+123µs) by installer::windows::msiglobal::include_cabs_into_msi at line 1228 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (21µs+130µs) by installer::packagelist::log_cabinet_assignments at line 839 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/packagelist.pm
#      once (27µs+123µs) by installer::scriptitems::remove_non_existent_languages_in_productlists at line 780 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/scriptitems.pm
#      once (24µs+125µs) by installer::profiles::create_profiles at line 150 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/profiles.pm
#      once (23µs+125µs) by installer::substfilenamefiles::resolving_subst_filename_flag at line 46 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/substfilenamefiles.pm
#      once (23µs+121µs) by installer::packagelist::prepare_cabinet_files at line 794 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/packagelist.pm
#      once (21µs+99µs) by installer::windows::msiglobal::save_packorder at line 373 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (14µs+94µs) by installer::worker::put_scpactions_into_installset at line 948 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#      once (16µs+92µs) by installer::run at line 1464 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (26µs+66µs) by installer::ziplist::replace_languages_in_paths at line 549 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/ziplist.pm
#      once (14µs+27µs) by installer::ziplist::list_all_files_from_include_path at line 613 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/ziplist.pm | ||||
| 59 | 579 | 991µs | my ($message) = @_; | ||
| 60 | |||||
| 61 | 579 | 349µs | my $infoline; | ||
| 62 | |||||
| 63 | 579 | 2.41ms | 579 | 92.1ms | $infoline = "\n" . _get_time_string();     # spent  92.1ms making 579 calls to installer::logger::_get_time_string, avg 159µs/call | 
| 64 | 579 | 1.04ms | push( @installer::globals::logfileinfo, $infoline); | ||
| 65 | |||||
| 66 | 579 | 552µs | $infoline = "######################################################\n"; | ||
| 67 | 579 | 861µs | push( @installer::globals::logfileinfo, $infoline); | ||
| 68 | |||||
| 69 | 579 | 537µs | $infoline = "$message\n"; | ||
| 70 | 579 | 657µs | push( @installer::globals::logfileinfo, $infoline); | ||
| 71 | |||||
| 72 | |||||
| 73 | 579 | 400µs | $infoline = "######################################################\n"; | ||
| 74 | 579 | 4.04ms | push( @installer::globals::logfileinfo, $infoline); | ||
| 75 | } | ||||
| 76 | |||||
| 77 | #################################################### | ||||
| 78 | # Write timestamp into log file | ||||
| 79 | #################################################### | ||||
| 80 | |||||
| 81 | sub include_timestamp_into_logfile | ||||
| 82 | # spent 58.1ms (6.18+51.9) within installer::logger::include_timestamp_into_logfile which was called 318 times, avg 183µs/call:
# 109 times (2.22ms+19.3ms) by installer::windows::idtglobal::addcustomactions at line 1695 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 197µs/call
# 109 times (2.09ms+17.9ms) by installer::windows::idtglobal::addcustomactions at line 1822 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 183µs/call
#   5 times (142µs+969µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 449 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 222µs/call
#   5 times (133µs+971µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 397 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 221µs/call
#   5 times (138µs+953µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 464 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 218µs/call
#   5 times (136µs+928µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 466 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 213µs/call
#   5 times (125µs+915µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 597 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 208µs/call
#   5 times (121µs+911µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 366 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 206µs/call
#   5 times (105µs+891µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 538 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 199µs/call
#   5 times (100µs+840µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 412 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 188µs/call
#   5 times (90µs+803µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 460 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 179µs/call
#   5 times (67µs+574µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 540 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 128µs/call
#   5 times (56µs+551µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 476 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 121µs/call
#   5 times (60µs+543µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 546 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 121µs/call
#   5 times (61µs+530µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 462 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 118µs/call
#   5 times (57µs+532µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 552 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 118µs/call
#   5 times (59µs+524µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 556 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 117µs/call
#   5 times (49µs+484µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 560 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 106µs/call
#   4 times (38µs+412µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 470 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 112µs/call
#   2 times (64µs+391µs) by installer::worker::generate_cygwin_paths at line 1293 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm, avg 227µs/call
#   2 times (20µs+194µs) by installer::worker::generate_cygwin_paths at line 1219 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm, avg 107µs/call
#      once (47µs+284µs) by installer::windows::msiglobal::execute_packaging at line 1382 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (22µs+197µs) by installer::windows::file::create_files_table at line 850 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/file.pm
#      once (26µs+192µs) by installer::windows::msiglobal::generate_cab_file_list at line 358 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (18µs+195µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 329 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm
#      once (24µs+189µs) by installer::windows::file::create_files_table at line 1035 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/file.pm
#      once (26µs+176µs) by installer::windows::msiglobal::save_packorder at line 420 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (18µs+106µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 60 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm
#      once (24µs+97µs) by installer::windows::msiglobal::generate_cab_file_list at line 172 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (9µs+105µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 75 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm
#      once (17µs+97µs) by installer::windows::msiglobal::execute_packaging at line 1300 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (11µs+100µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 604 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm
#      once (10µs+96µs) by installer::windows::msiglobal::save_packorder at line 375 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm | ||||
| 83 | 318 | 696µs | my ($message) = @_; | ||
| 84 | |||||
| 85 | 318 | 211µs | my $infoline; | ||
| 86 | 318 | 1.52ms | 318 | 51.9ms | my $timestring = _get_time_string();     # spent  51.9ms making 318 calls to installer::logger::_get_time_string, avg 163µs/call | 
| 87 | 318 | 596µs | $infoline = "$message\t$timestring"; | ||
| 88 | 318 | 2.56ms | push( @installer::globals::logfileinfo, $infoline); | ||
| 89 | } | ||||
| 90 | |||||
| 91 | #################################################### | ||||
| 92 | # Writing all variables content into the log file | ||||
| 93 | #################################################### | ||||
| 94 | |||||
| 95 | sub log_hashref | ||||
| 96 | # spent 522µs within installer::logger::log_hashref which was called:
#    once (522µs+0s) by installer::run at line 353 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm | ||||
| 97 | 1 | 4µs | my ($hashref) = @_; | ||
| 98 | |||||
| 99 | 1 | 3µs | my $infoline = "\nLogging variable settings:\n"; | ||
| 100 | 1 | 3µs | push(@installer::globals::globallogfileinfo, $infoline); | ||
| 101 | |||||
| 102 | 1 | 1µs | my $itemkey; | ||
| 103 | |||||
| 104 | 1 | 69µs | foreach $itemkey ( keys %{$hashref} ) | ||
| 105 | { | ||||
| 106 | 108 | 47µs | my $line = ""; | ||
| 107 | 108 | 41µs | my $itemvalue = ""; | ||
| 108 | 108 | 94µs | if ( $hashref->{$itemkey} ) { $itemvalue = $hashref->{$itemkey}; } | ||
| 109 | 108 | 92µs | $line = $itemkey . "=" . $itemvalue . "\n"; | ||
| 110 | 108 | 158µs | push(@installer::globals::globallogfileinfo, $line); | ||
| 111 | } | ||||
| 112 | |||||
| 113 | 1 | 500ns | $infoline = "\n"; | ||
| 114 | 1 | 11µs | push(@installer::globals::globallogfileinfo, $infoline); | ||
| 115 | } | ||||
| 116 | |||||
| 117 | ######################################################### | ||||
| 118 | # Including global logging info into global log array | ||||
| 119 | ######################################################### | ||||
| 120 | |||||
| 121 | sub globallog | ||||
| 122 | # spent 552µs (145+407) within installer::logger::globallog which was called 7 times, avg 79µs/call:
#    once (28µs+67µs) by installer::worker::collect_all_files_from_includepaths at line 1017 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#    once (24µs+67µs) by installer::setupscript::replace_all_setupscriptvariables_in_script at line 300 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/setupscript.pm
#    once (19µs+61µs) by installer::setupscript::replace_all_setupscriptvariables_in_script at line 259 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/setupscript.pm
#    once (21µs+58µs) by installer::parameter::saveparameter at line 98 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/parameter.pm
#    once (19µs+58µs) by installer::run at line 161 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#    once (19µs+57µs) by installer::worker::collect_all_files_from_includepaths at line 1065 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#    once (15µs+38µs) by installer::run at line 317 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm | ||||
| 123 | 7 | 13µs | my ($message) = @_; | ||
| 124 | |||||
| 125 | 7 | 2µs | my $infoline; | ||
| 126 | |||||
| 127 | 7 | 32µs | 7 | 407µs | $infoline = "\n" . _get_time_string();     # spent   407µs making 7 calls to installer::logger::_get_time_string, avg 58µs/call | 
| 128 | 7 | 13µs | push( @installer::globals::globallogfileinfo, $infoline); | ||
| 129 | |||||
| 130 | 7 | 7µs | $infoline = "######################################################\n"; | ||
| 131 | 7 | 8µs | push( @installer::globals::globallogfileinfo, $infoline); | ||
| 132 | |||||
| 133 | 7 | 6µs | $infoline = "$message\n"; | ||
| 134 | 7 | 7µs | push( @installer::globals::globallogfileinfo, $infoline); | ||
| 135 | |||||
| 136 | 7 | 7µs | $infoline = "######################################################\n"; | ||
| 137 | 7 | 55µs | push( @installer::globals::globallogfileinfo, $infoline); | ||
| 138 | |||||
| 139 | } | ||||
| 140 | |||||
| 141 | ############################################################### | ||||
| 142 | # For each product (new language) a new log file is created. | ||||
| 143 | # Therefore the global logging has to be saved in this file. | ||||
| 144 | ############################################################### | ||||
| 145 | |||||
| 146 | sub copy_globalinfo_into_logfile | ||||
| 147 | # spent 459µs within installer::logger::copy_globalinfo_into_logfile which was called:
#    once (459µs+0s) by installer::run at line 532 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm | ||||
| 148 | 1 | 462µs | for ( my $i = 0; $i <= $#installer::globals::globallogfileinfo; $i++ ) | ||
| 149 | { | ||||
| 150 | push(@installer::globals::logfileinfo, $installer::globals::globallogfileinfo[$i]); | ||||
| 151 | } | ||||
| 152 | } | ||||
| 153 | |||||
| 154 | ############################################################### | ||||
| 155 | # Starting the time | ||||
| 156 | ############################################################### | ||||
| 157 | |||||
| 158 | sub starttime | ||||
| 159 | # spent 4µs within installer::logger::starttime which was called:
#    once (4µs+0s) by installer::main at line 90 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm | ||||
| 160 | 1 | 10µs | $starttime = time(); | ||
| 161 | } | ||||
| 162 | |||||
| 163 | ############################################################### | ||||
| 164 | # Convert time string | ||||
| 165 | ############################################################### | ||||
| 166 | |||||
| 167 | sub _convert_timestring | ||||
| 168 | # spent 106ms (35.2+70.8) within installer::logger::_convert_timestring which was called 905 times, avg 117µs/call:
# 905 times (35.2ms+70.8ms) by installer::logger::_get_time_string at line 212, avg 117µs/call | ||||
| 169 | 905 | 1.19ms | my ($secondstring) = @_; | ||
| 170 | |||||
| 171 | 905 | 970µs | my $timestring = ""; | ||
| 172 | |||||
| 173 | 905 | 2.06ms | if ( $secondstring < 60 ) # less than a minute | ||
| 174 | { | ||||
| 175 | 10 | 29µs | if ( $secondstring < 10 ) { $secondstring = "0" . $secondstring; } | ||
| 176 | 10 | 16µs | $timestring = "00\:$secondstring min\."; | ||
| 177 | } | ||||
| 178 | elsif ( $secondstring < 3600 ) | ||||
| 179 | { | ||||
| 180 | 16 | 47µs | my $minutes = $secondstring / 60; | ||
| 181 | 16 | 39µs | my $seconds = $secondstring % 60; | ||
| 182 | 16 | 938µs | 16 | 764µs | if ( $minutes =~ /(\d*)\.\d*/ ) { $minutes = $1; }         # spent   764µs making 16 calls to installer::logger::CORE:match, avg 48µs/call | 
| 183 | 16 | 77µs | if ( $minutes < 10 ) { $minutes = "0" . $minutes; } | ||
| 184 | 16 | 20µs | if ( $seconds < 10 ) { $seconds = "0" . $seconds; } | ||
| 185 | 16 | 43µs | $timestring = "$minutes\:$seconds min\."; | ||
| 186 | } | ||||
| 187 | else # more than one hour | ||||
| 188 | { | ||||
| 189 | 879 | 2.09ms | my $hours = $secondstring / 3600; | ||
| 190 | 879 | 1.63ms | my $secondstring = $secondstring % 3600; | ||
| 191 | 879 | 596µs | my $minutes = $secondstring / 60; | ||
| 192 | 879 | 697µs | my $seconds = $secondstring % 60; | ||
| 193 | 879 | 50.6ms | 879 | 41.6ms | if ( $hours =~ /(\d*)\.\d*/ ) { $hours = $1; }         # spent  41.6ms making 879 calls to installer::logger::CORE:match, avg 47µs/call | 
| 194 | 879 | 33.2ms | 879 | 28.4ms | if ( $minutes =~ /(\d*)\.\d*/ ) { $minutes = $1; }         # spent  28.4ms making 879 calls to installer::logger::CORE:match, avg 32µs/call | 
| 195 | 879 | 3.70ms | if ( $hours < 10 ) { $hours = "0" . $hours; } | ||
| 196 | 879 | 959µs | if ( $minutes < 10 ) { $minutes = "0" . $minutes; } | ||
| 197 | 879 | 908µs | if ( $seconds < 10 ) { $seconds = "0" . $seconds; } | ||
| 198 | 879 | 2.64ms | $timestring = "$hours\:$minutes\:$seconds hours"; | ||
| 199 | } | ||||
| 200 | |||||
| 201 | 905 | 6.35ms | return $timestring; | ||
| 202 | } | ||||
| 203 | |||||
| 204 | ############################################################### | ||||
| 205 | # Returning time string for logging | ||||
| 206 | ############################################################### | ||||
| 207 | |||||
| 208 | sub _get_time_string | ||||
| 209 | # spent 145ms (38.6+106) within installer::logger::_get_time_string which was called 905 times, avg 160µs/call:
# 579 times (24.0ms+68.1ms) by installer::logger::include_header_into_logfile at line 63, avg 159µs/call
# 318 times (14.2ms+37.6ms) by installer::logger::include_timestamp_into_logfile at line 86, avg 163µs/call
#   7 times (312µs+95µs) by installer::logger::globallog at line 127, avg 58µs/call
#      once (50µs+147µs) by installer::logger::stoptime at line 223 | ||||
| 210 | 905 | 1.85ms | my $currenttime = time(); | ||
| 211 | 905 | 1.29ms | $currenttime = $currenttime - $starttime; | ||
| 212 | 905 | 3.84ms | 905 | 106ms | $currenttime = _convert_timestring($currenttime);     # spent   106ms making 905 calls to installer::logger::_convert_timestring, avg 117µs/call | 
| 213 | 905 | 25.5ms | $currenttime = localtime() . " \(" . $currenttime . "\)\n"; | ||
| 214 | 905 | 6.44ms | return $currenttime; | ||
| 215 | } | ||||
| 216 | |||||
| 217 | ############################################################### | ||||
| 218 | # Stopping the time | ||||
| 219 | ############################################################### | ||||
| 220 | |||||
| 221 | sub stoptime | ||||
| 222 | # spent 238µs (21+217) within installer::logger::stoptime which was called:
#    once (21µs+217µs) by installer::main at line 102 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm | ||||
| 223 | 1 | 12µs | 2 | 217µs | print_message( _get_time_string() );     # spent   197µs making 1 call to installer::logger::_get_time_string
    # spent    20µs making 1 call to installer::logger::print_message | 
| 224 | } | ||||
| 225 | |||||
| 226 | ############################################################### | ||||
| 227 | # Console output: messages | ||||
| 228 | ############################################################### | ||||
| 229 | |||||
| 230 | sub print_message | ||||
| 231 | # spent 7.67ms (6.53+1.13) within installer::logger::print_message which was called 419 times, avg 18µs/call:
# 109 times (1.88ms+361µs) by installer::run at line 1561 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm, avg 21µs/call
# 109 times (1.75ms+325µs) by installer::run at line 1570 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm, avg 19µs/call
# 109 times (1.66ms+213µs) by installer::run at line 1674 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm, avg 17µs/call
#  19 times (142µs+14µs) by installer::parameter::outputparameter at line 588 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/parameter.pm, avg 8µs/call
#   7 times (61µs+7µs) by installer::control::check_system_path at line 138 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/control.pm, avg 10µs/call
#   7 times (59µs+8µs) by installer::control::check_system_path at line 127 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/control.pm, avg 9µs/call
#   5 times (83µs+21µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 350 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 21µs/call
#   3 times (29µs+5µs) by installer::control::check_logfile at line 402 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/control.pm, avg 11µs/call
#      once (26µs+6µs) by installer::run at line 878 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (25µs+5µs) by installer::run at line 1766 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (22µs+7µs) by installer::run at line 991 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (22µs+4µs) by installer::run at line 709 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (23µs+3µs) by installer::worker::clean_output_tree at line 244 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#      once (22µs+4µs) by installer::run at line 729 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (23µs+3µs) by installer::run at line 1757 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (21µs+5µs) by installer::run at line 413 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (21µs+5µs) by installer::run at line 1718 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (21µs+5µs) by installer::run at line 417 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (21µs+4µs) by installer::run at line 737 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (20µs+6µs) by installer::run at line 108 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (20µs+5µs) by installer::worker::analyze_and_save_logfile at line 219 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#      once (20µs+4µs) by installer::run at line 437 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (20µs+5µs) by installer::run at line 421 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (19µs+5µs) by installer::run at line 433 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (19µs+5µs) by installer::run at line 409 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (18µs+5µs) by installer::worker::collect_all_files_from_includepaths at line 1018 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#      once (20µs+4µs) by installer::run at line 370 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (21µs+3µs) by installer::run at line 1746 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (19µs+4µs) by installer::run at line 451 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (19µs+4µs) by installer::run at line 1462 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (19µs+4µs) by installer::run at line 684 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (19µs+4µs) by installer::run at line 863 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (20µs+3µs) by installer::run at line 701 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (19µs+3µs) by installer::run at line 647 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (18µs+4µs) by installer::worker::analyze_and_save_logfile at line 187 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#      once (17µs+5µs) by installer::run at line 398 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (17µs+5µs) by installer::run at line 843 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (18µs+4µs) by installer::run at line 464 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (19µs+2µs) by installer::run at line 719 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (20µs+1µs) by installer::run at line 589 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (17µs+4µs) by installer::run at line 355 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (17µs+4µs) by installer::run at line 455 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (16µs+4µs) by installer::logger::stoptime at line 223
#      once (15µs+4µs) by installer::run at line 770 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (14µs+4µs) by installer::run at line 503 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (14µs+4µs) by installer::run at line 445 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (15µs+4µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 59 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm
#      once (14µs+4µs) by installer::worker::create_installation_directory at line 165 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#      once (13µs+2µs) by installer::run at line 319 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (10µs+2µs) by installer::windows::msiglobal::execute_packaging at line 1330 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
#      once (9µs+1µs) by installer::run at line 1726 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (9µs+1µs) by installer::run at line 146 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (9µs+1µs) by installer::worker::clean_output_tree at line 250 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#      once (8µs+1µs) by installer::run at line 165 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (9µs+500ns) by installer::run at line 809 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (8µs+1µs) by installer::run at line 504 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (7µs+1µs) by installer::run at line 792 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
#      once (7µs+600ns) by installer::worker::remove_old_installation_sets at line 131 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
#      once (7µs+1µs) by installer::run at line 853 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm | ||||
| 232 | 419 | 675µs | my $message = shift; | ||
| 233 | 419 | 878µs | chomp $message; | ||
| 234 | 419 | 454µs | my $force = shift || 0; | ||
| 235 | 419 | 3.91ms | 419 | 1.13ms | print "$message\n" if ( $force || ! $installer::globals::quiet );     # spent  1.13ms making 419 calls to installer::logger::CORE:print, avg 3µs/call | 
| 236 | 419 | 2.30ms | return; | ||
| 237 | } | ||||
| 238 | |||||
| 239 | ############################################################### | ||||
| 240 | # Console output: warnings | ||||
| 241 | ############################################################### | ||||
| 242 | |||||
| 243 | sub print_warning | ||||
| 244 | { | ||||
| 245 | my $message = shift; | ||||
| 246 | chomp $message; | ||||
| 247 | print STDERR "WARNING: $message"; | ||||
| 248 | return; | ||||
| 249 | } | ||||
| 250 | |||||
| 251 | ############################################################### | ||||
| 252 | # Console output: errors | ||||
| 253 | ############################################################### | ||||
| 254 | |||||
| 255 | sub print_error | ||||
| 256 | { | ||||
| 257 | my $message = shift; | ||||
| 258 | chomp $message; | ||||
| 259 | print STDERR "\n**************************************************\n"; | ||||
| 260 | print STDERR "ERROR: $message"; | ||||
| 261 | print STDERR "\n**************************************************\n"; | ||||
| 262 | return; | ||||
| 263 | } | ||||
| 264 | |||||
| 265 | 1 | 16µs | 1; | ||
| # spent 70.8ms within installer::logger::CORE:match which was called 1774 times, avg 40µs/call:
# 879 times (41.6ms+0s) by installer::logger::_convert_timestring at line 193, avg 47µs/call
# 879 times (28.4ms+0s) by installer::logger::_convert_timestring at line 194, avg 32µs/call
#  16 times (764µs+0s) by installer::logger::_convert_timestring at line 182, avg 48µs/call | |||||
| # spent 1.13ms within installer::logger::CORE:print which was called 419 times, avg 3µs/call:
# 419 times (1.13ms+0s) by installer::logger::print_message at line 235, avg 3µs/call |