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 | CORE:match (opcode) | installer::logger::
905 | 4 | 1 | 38.6ms | 145ms | _get_time_string | installer::logger::
905 | 1 | 1 | 35.2ms | 106ms | _convert_timestring | installer::logger::
579 | 31 | 13 | 12.4ms | 105ms | include_header_into_logfile | installer::logger::
419 | 59 | 7 | 6.53ms | 7.67ms | print_message | installer::logger::
318 | 33 | 5 | 6.18ms | 58.1ms | include_timestamp_into_logfile | installer::logger::
1 | 1 | 1 | 4.67ms | 5.30ms | BEGIN@36 | installer::logger::
419 | 1 | 1 | 1.13ms | 1.13ms | CORE:print (opcode) | installer::logger::
1 | 1 | 1 | 615µs | 632µs | BEGIN@30 | installer::logger::
1 | 1 | 1 | 522µs | 522µs | log_hashref | installer::logger::
1 | 1 | 1 | 459µs | 459µs | copy_globalinfo_into_logfile | installer::logger::
7 | 7 | 4 | 145µs | 552µs | globallog | installer::logger::
1 | 1 | 1 | 24µs | 28µs | BEGIN@35 | installer::logger::
1 | 1 | 1 | 21µs | 238µs | stoptime | installer::logger::
1 | 1 | 1 | 21µs | 47µs | BEGIN@31 | installer::logger::
1 | 1 | 1 | 19µs | 144µs | BEGIN@33 | installer::logger::
1 | 1 | 1 | 4µs | 4µs | starttime | installer::logger::
0 | 0 | 0 | 0s | 0s | print_error | installer::logger::
0 | 0 | 0 | 0s | 0s | print_warning | installer::logger::
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 | 5790 | 11.8ms | my ($message) = @_; | ||
60 | |||||
61 | my $infoline; | ||||
62 | |||||
63 | 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 | push( @installer::globals::logfileinfo, $infoline); | ||||
65 | |||||
66 | $infoline = "######################################################\n"; | ||||
67 | push( @installer::globals::logfileinfo, $infoline); | ||||
68 | |||||
69 | $infoline = "$message\n"; | ||||
70 | push( @installer::globals::logfileinfo, $infoline); | ||||
71 | |||||
72 | |||||
73 | $infoline = "######################################################\n"; | ||||
74 | 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 | 1590 | 5.59ms | my ($message) = @_; | ||
84 | |||||
85 | my $infoline; | ||||
86 | 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 | $infoline = "$message\t$timestring"; | ||||
88 | 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 | 7 | 91µs | my ($hashref) = @_; | ||
98 | |||||
99 | my $infoline = "\nLogging variable settings:\n"; | ||||
100 | push(@installer::globals::globallogfileinfo, $infoline); | ||||
101 | |||||
102 | my $itemkey; | ||||
103 | |||||
104 | foreach $itemkey ( keys %{$hashref} ) | ||||
105 | { | ||||
106 | 540 | 432µs | my $line = ""; | ||
107 | my $itemvalue = ""; | ||||
108 | if ( $hashref->{$itemkey} ) { $itemvalue = $hashref->{$itemkey}; } | ||||
109 | $line = $itemkey . "=" . $itemvalue . "\n"; | ||||
110 | push(@installer::globals::globallogfileinfo, $line); | ||||
111 | } | ||||
112 | |||||
113 | $infoline = "\n"; | ||||
114 | 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 | 70 | 150µs | my ($message) = @_; | ||
124 | |||||
125 | my $infoline; | ||||
126 | |||||
127 | 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 | push( @installer::globals::globallogfileinfo, $infoline); | ||||
129 | |||||
130 | $infoline = "######################################################\n"; | ||||
131 | push( @installer::globals::globallogfileinfo, $infoline); | ||||
132 | |||||
133 | $infoline = "$message\n"; | ||||
134 | push( @installer::globals::globallogfileinfo, $infoline); | ||||
135 | |||||
136 | $infoline = "######################################################\n"; | ||||
137 | 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 | 3620 | 10.6ms | my ($secondstring) = @_; | ||
170 | |||||
171 | my $timestring = ""; | ||||
172 | |||||
173 | 8906 | 98.2ms | if ( $secondstring < 60 ) # less than a minute | ||
174 | { | ||||
175 | if ( $secondstring < 10 ) { $secondstring = "0" . $secondstring; } | ||||
176 | $timestring = "00\:$secondstring min\."; | ||||
177 | } | ||||
178 | elsif ( $secondstring < 3600 ) | ||||
179 | { | ||||
180 | my $minutes = $secondstring / 60; | ||||
181 | my $seconds = $secondstring % 60; | ||||
182 | 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 | if ( $minutes < 10 ) { $minutes = "0" . $minutes; } | ||||
184 | if ( $seconds < 10 ) { $seconds = "0" . $seconds; } | ||||
185 | $timestring = "$minutes\:$seconds min\."; | ||||
186 | } | ||||
187 | else # more than one hour | ||||
188 | { | ||||
189 | my $hours = $secondstring / 3600; | ||||
190 | my $secondstring = $secondstring % 3600; | ||||
191 | my $minutes = $secondstring / 60; | ||||
192 | my $seconds = $secondstring % 60; | ||||
193 | 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 | 28.4ms | if ( $minutes =~ /(\d*)\.\d*/ ) { $minutes = $1; } # spent 28.4ms making 879 calls to installer::logger::CORE:match, avg 32µs/call | ||
195 | if ( $hours < 10 ) { $hours = "0" . $hours; } | ||||
196 | if ( $minutes < 10 ) { $minutes = "0" . $minutes; } | ||||
197 | if ( $seconds < 10 ) { $seconds = "0" . $seconds; } | ||||
198 | $timestring = "$hours\:$minutes\:$seconds hours"; | ||||
199 | } | ||||
200 | |||||
201 | 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 | 4525 | 38.9ms | my $currenttime = time(); | ||
211 | $currenttime = $currenttime - $starttime; | ||||
212 | 905 | 106ms | $currenttime = _convert_timestring($currenttime); # spent 106ms making 905 calls to installer::logger::_convert_timestring, avg 117µs/call | ||
213 | $currenttime = localtime() . " \(" . $currenttime . "\)\n"; | ||||
214 | 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 | 2095 | 8.22ms | my $message = shift; | ||
233 | chomp $message; | ||||
234 | my $force = shift || 0; | ||||
235 | 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 | 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 |