Filename | /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/files.pm |
Statements | Executed 86540 statements in 74.4s |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
9397 | 44 | 13 | 51.6s | 66.9s | read_file | installer::files::
14838796 | 1 | 1 | 12.6s | 12.6s | CORE:readline (opcode) | installer::files::
16917 | 4 | 1 | 5.41s | 5.41s | CORE:open (opcode) | installer::files::
7511 | 2 | 1 | 3.39s | 3.39s | CORE:print (opcode) | installer::files::
16917 | 4 | 1 | 1.16s | 1.16s | CORE:close (opcode) | installer::files::
7502 | 51 | 24 | 211ms | 7.41s | save_file | installer::files::
1 | 1 | 1 | 2.79ms | 9.00ms | BEGIN@34 | installer::files::
9 | 1 | 1 | 1.64ms | 1.64ms | CORE:read (opcode) | installer::files::
9 | 1 | 1 | 954µs | 9.09ms | save_binary_file | installer::files::
9 | 1 | 1 | 916µs | 5.03ms | read_binary_file | installer::files::
3 | 1 | 1 | 540µs | 540µs | CORE:ftfile (opcode) | installer::files::
1 | 1 | 1 | 385µs | 393µs | BEGIN@30 | installer::files::
18 | 2 | 1 | 107µs | 107µs | CORE:seek (opcode) | installer::files::
3 | 3 | 1 | 43µs | 583µs | check_file | installer::files::
18 | 2 | 1 | 37µs | 37µs | CORE:binmode (opcode) | installer::files::
1 | 1 | 1 | 32µs | 36µs | BEGIN@33 | installer::files::
1 | 1 | 1 | 14µs | 29µs | BEGIN@31 | installer::files::
9 | 1 | 1 | 9µs | 9µs | CORE:tell (opcode) | installer::files::
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::files; | ||||
29 | |||||
30 | 2 | 62µs | 2 | 400µs | # spent 393µs (385+7) within installer::files::BEGIN@30 which was called:
# once (385µs+7µs) by installer::exiter::BEGIN@33 at line 30 # spent 393µs making 1 call to installer::files::BEGIN@30
# spent 7µs making 1 call to strict::import |
31 | 2 | 56µs | 2 | 43µs | # spent 29µs (14+14) within installer::files::BEGIN@31 which was called:
# once (14µs+14µs) by installer::exiter::BEGIN@33 at line 31 # spent 29µs making 1 call to installer::files::BEGIN@31
# spent 14µs making 1 call to warnings::import |
32 | |||||
33 | 2 | 62µs | 2 | 40µs | # spent 36µs (32+4) within installer::files::BEGIN@33 which was called:
# once (32µs+4µs) by installer::exiter::BEGIN@33 at line 33 # spent 36µs making 1 call to installer::files::BEGIN@33
# spent 4µs making 1 call to UNIVERSAL::import |
34 | 2 | 2.14ms | 2 | 9.05ms | # spent 9.00ms (2.79+6.21) within installer::files::BEGIN@34 which was called:
# once (2.79ms+6.21ms) by installer::exiter::BEGIN@33 at line 34 # spent 9.00ms making 1 call to installer::files::BEGIN@34
# spent 53µs making 1 call to Exporter::import |
35 | |||||
36 | ############################################ | ||||
37 | # File Operations | ||||
38 | ############################################ | ||||
39 | |||||
40 | sub check_file | ||||
41 | # spent 583µs (43+540) within installer::files::check_file which was called 3 times, avg 194µs/call:
# once (27µs+273µs) by installer::parameter::control_required_parameter at line 472 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/parameter.pm
# once (8µs+166µs) by installer::parameter::control_required_parameter at line 474 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/parameter.pm
# once (8µs+101µs) by installer::parameter::control_required_parameter at line 517 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/parameter.pm | ||||
42 | 3 | 6µs | my ($arg) = @_; | ||
43 | |||||
44 | 3 | 586µs | 3 | 540µs | if(!( -f $arg )) # spent 540µs making 3 calls to installer::files::CORE:ftfile, avg 180µs/call |
45 | { | ||||
46 | installer::exiter::exit_program("ERROR: Cannot find file $arg", "check_file"); | ||||
47 | } | ||||
48 | } | ||||
49 | |||||
50 | sub read_file | ||||
51 | # spent 66.9s (51.6+15.3) within installer::files::read_file which was called 9397 times, avg 7.12ms/call:
# 4578 times (21.5s+6.36s) by installer::windows::idtglobal::setencoding at line 1377 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 6.08ms/call
# 1283 times (1.25s+593ms) by installer::packagelist::get_packinfo at line 539 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/packagelist.pm, avg 1.44ms/call
# 872 times (23.4s+6.28s) by installer::run at line 1590 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm, avg 34.0ms/call
# 872 times (274ms+361ms) by installer::run at line 1593 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm, avg 728µs/call
# 110 times (88.5ms+59.9ms) by installer::scpzipfiles::resolving_scpzip_replace_flag at line 134 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/scpzipfiles.pm, avg 1.35ms/call
# 109 times (3.48s+866ms) by installer::windows::msiglobal::set_uuid_into_component_table at line 1074 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm, avg 39.9ms/call
# 109 times (185ms+103ms) by installer::run at line 1682 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm, avg 2.64ms/call
# 109 times (54.4ms+41.1ms) by installer::windows::idtglobal::addcustomactions at line 1706 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 876µs/call
# 109 times (52.0ms+41.0ms) by installer::windows::idtglobal::set_multilanguageonly_condition at line 1402 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 853µs/call
# 109 times (39.9ms+36.5ms) by installer::windows::property::set_languages_in_property_table at line 531 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/property.pm, avg 701µs/call
# 109 times (28.8ms+34.9ms) by installer::windows::idtglobal::addcustomactions at line 1700 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 585µs/call
# 109 times (28.0ms+34.8ms) by installer::windows::idtglobal::addcustomactions at line 1708 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 577µs/call
# 109 times (25.3ms+35.0ms) by installer::windows::property::set_codes_in_property_table at line 572 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/property.pm, avg 552µs/call
# 109 times (24.8ms+34.0ms) by installer::windows::property::update_property_table at line 462 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/property.pm, avg 540µs/call
# 109 times (14.3ms+32.2ms) by installer::windows::idtglobal::addcustomactions at line 1704 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 427µs/call
# 109 times (9.04ms+31.9ms) by installer::windows::binary::update_binary_table at line 46 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/binary.pm, avg 376µs/call
# 109 times (7.81ms+32.6ms) by installer::windows::idtglobal::addcustomactions at line 1698 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 371µs/call
# 109 times (7.45ms+30.9ms) by installer::windows::idtglobal::addcustomactions at line 1702 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 352µs/call
# 109 times (5.36ms+30.0ms) by installer::windows::msiglobal::update_reglocat_table at line 1565 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm, avg 325µs/call
# 53 times (3.29ms+12.2ms) by installer::archivefiles::collect_all_executable_files_in_extensions at line 137 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/archivefiles.pm, avg 292µs/call
# 20 times (3.64ms+4.80ms) by installer::windows::mergemodule::change_executesequence_table at line 1636 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 422µs/call
# 20 times (1.26ms+4.18ms) by installer::windows::mergemodule::change_executesequence_table at line 1637 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 272µs/call
# 5 times (287ms+68.4ms) by installer::windows::mergemodule::change_file_table at line 1098 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 71.1ms/call
# 5 times (158ms+43.4ms) by installer::windows::mergemodule::change_component_table at line 1392 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 40.3ms/call
# 5 times (155ms+36.3ms) by installer::windows::mergemodule::change_featurecomponent_table at line 1349 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 38.3ms/call
# 5 times (463µs+1.51ms) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 169 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 395µs/call
# 5 times (254µs+1.21ms) by installer::windows::mergemodule::change_media_table at line 858 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 292µs/call
# 5 times (240µs+1.15ms) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 195 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 278µs/call
# 5 times (303µs+1.06ms) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 207 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 273µs/call
# 4 times (4.24ms+2.07ms) by installer::windows::idtglobal::setbidiattributes at line 1839 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 1.58ms/call
# 4 times (543µs+1.25ms) by installer::windows::idtglobal::setbidiattributes at line 1838 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 448µs/call
# 4 times (346µs+1.10ms) by installer::windows::mergemodule::change_msiassembly_table at line 1508 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 361µs/call
# 4 times (151µs+834µs) by installer::windows::mergemodule::merge_mergemodules_into_msi_database at line 222 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 246µs/call
# 2 times (250µs+605µs) by installer::worker::add_variables_from_inc_to_hashref at line 990 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm, avg 428µs/call
# once (442ms+84.8ms) by installer::run at line 321 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
# once (53.9ms+13.2ms) by installer::windows::msiglobal::save_packorder at line 388 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
# once (31.6ms+8.15ms) by installer::windows::assembly::add_assembly_condition_into_component_table at line 268 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/assembly.pm
# once (5.41ms+1.53ms) by installer::windows::mergemodule::collect_feature at line 1316 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm
# once (1.40ms+551µs) by installer::run at line 163 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
# once (586µs+403µs) by installer::control::read_encodinglist at line 425 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/control.pm
# once (257µs+518µs) by installer::worker::set_spellcheckerlanguages at line 1432 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
# once (118µs+579µs) by installer::windows::msiglobal::put_msiproductversion_into_bootstrapfile at line 1535 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
# once (152µs+321µs) by installer::windows::msiglobal::set_global_code_variables at line 1414 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
# once (81µs+322µs) by installer::windows::update::readdatabase at line 325 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/update.pm | ||||
52 | 9397 | 11.8ms | my ($localfile) = @_; | ||
53 | 9397 | 7.79ms | my @localfile = (); | ||
54 | |||||
55 | 9397 | 2.50s | 9397 | 2.44s | open( IN, "<$localfile" ) || installer::exiter::exit_program("ERROR: Cannot open file $localfile for reading", "read_file"); # spent 2.44s making 9397 calls to installer::files::CORE:open, avg 259µs/call |
56 | |||||
57 | # Don't use "my @localfile = <IN>" here, because | ||||
58 | # perl has a problem with the internal "large_and_huge_malloc" function | ||||
59 | # when calling perl using MacOS 10.5 with a perl built with MacOS 10.4 | ||||
60 | 9397 | 64.0s | 14838796 | 12.6s | while ( my $line = <IN> ) { # spent 12.6s making 14838796 calls to installer::files::CORE:readline, avg 848ns/call |
61 | push @localfile, $line; | ||||
62 | } | ||||
63 | |||||
64 | 9397 | 346ms | 9397 | 308ms | close( IN ); # spent 308ms making 9397 calls to installer::files::CORE:close, avg 33µs/call |
65 | |||||
66 | 9397 | 66.3ms | return \@localfile; | ||
67 | } | ||||
68 | |||||
69 | ########################################### | ||||
70 | # Saving files, arrays and hashes | ||||
71 | ########################################### | ||||
72 | |||||
73 | sub save_file | ||||
74 | # spent 7.41s (211ms+7.20) within installer::files::save_file which was called 7502 times, avg 988µs/call:
# 4578 times (121ms+4.25s) by installer::windows::idtglobal::setencoding at line 1384 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 955µs/call
# 872 times (27.8ms+613ms) by installer::run at line 1598 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm, avg 735µs/call
# 110 times (2.51ms+87.8ms) by installer::scpzipfiles::resolving_scpzip_replace_flag at line 136 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/scpzipfiles.pm, avg 821µs/call
# 109 times (7.66ms+593ms) by installer::windows::msiglobal::set_uuid_into_component_table at line 1118 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm, avg 5.51ms/call
# 109 times (4.54ms+229ms) by installer::windows::registry::create_registry_table at line 421 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/registry.pm, avg 2.15ms/call
# 109 times (6.29ms+221ms) by installer::windows::feature::create_feature_table at line 471 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/feature.pm, avg 2.09ms/call
# 109 times (5.42ms+220ms) by installer::windows::directory::create_directory_table at line 543 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/directory.pm, avg 2.07ms/call
# 109 times (3.53ms+85.2ms) by installer::windows::idtglobal::addcustomactions at line 1802 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 814µs/call
# 109 times (2.67ms+83.5ms) by installer::windows::shortcut::create_shortcut_table at line 660 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/shortcut.pm, avg 790µs/call
# 109 times (2.47ms+52.7ms) by installer::windows::idtglobal::set_multilanguageonly_condition at line 1442 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 506µs/call
# 109 times (2.35ms+48.4ms) by installer::windows::idtglobal::addcustomactions at line 1806 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 465µs/call
# 109 times (2.40ms+45.6ms) by installer::windows::property::update_property_table at line 514 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/property.pm, avg 440µs/call
# 109 times (2.28ms+45.1ms) by installer::windows::idtglobal::addcustomactions at line 1803 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 434µs/call
# 109 times (2.19ms+43.3ms) by installer::windows::idtglobal::addcustomactions at line 1807 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 418µs/call
# 109 times (2.12ms+42.6ms) by installer::windows::idtglobal::addcustomactions at line 1804 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 411µs/call
# 109 times (2.11ms+42.0ms) by installer::windows::msiglobal::update_reglocat_table at line 1593 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm, avg 405µs/call
# 109 times (2.14ms+41.5ms) by installer::windows::property::set_codes_in_property_table at line 584 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/property.pm, avg 401µs/call
# 109 times (2.08ms+41.3ms) by installer::windows::property::set_languages_in_property_table at line 553 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/property.pm, avg 398µs/call
# 109 times (2.14ms+41.2ms) by installer::windows::idtglobal::addcustomactions at line 1805 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 397µs/call
# 109 times (2.05ms+41.1ms) by installer::windows::binary::update_binary_table at line 71 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/binary.pm, avg 395µs/call
# 20 times (419µs+6.31ms) by installer::windows::mergemodule::change_executesequence_table at line 1690 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 336µs/call
# 8 times (425µs+22.3ms) by installer::worker::generate_cygwin_paths at line 1246 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm, avg 2.84ms/call
# 8 times (238µs+6.05ms) by installer::profiles::create_profiles at line 218 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/profiles.pm, avg 786µs/call
# 5 times (551µs+40.2ms) by installer::windows::mergemodule::change_file_table at line 1275 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 8.16ms/call
# 5 times (396µs+28.3ms) by installer::windows::mergemodule::change_component_table at line 1423 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 5.73ms/call
# 5 times (306µs+19.7ms) by installer::windows::mergemodule::change_featurecomponent_table at line 1375 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 4.00ms/call
# 5 times (142µs+1.69ms) by installer::windows::mergemodule::change_media_table at line 902 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 366µs/call
# 4 times (99µs+1.91ms) by installer::windows::idtglobal::setbidiattributes at line 1891 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 502µs/call
# 4 times (80µs+1.89ms) by installer::windows::idtglobal::setbidiattributes at line 1895 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/idtglobal.pm, avg 494µs/call
# 4 times (91µs+1.39ms) by installer::windows::mergemodule::change_msiassembly_table at line 1549 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/mergemodule.pm, avg 370µs/call
# once (403µs+41.1ms) by installer::run at line 1767 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
# once (341µs+38.0ms) by installer::worker::analyze_and_save_logfile at line 221 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
# once (348µs+37.5ms) by installer::run at line 1748 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
# once (433µs+35.7ms) by installer::worker::analyze_and_save_logfile at line 220 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/worker.pm
# once (104µs+9.53ms) by installer::windows::file::create_files_table at line 1031 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/file.pm
# once (85µs+8.39ms) by installer::windows::msiglobal::generate_cab_file_list at line 332 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
# once (74µs+7.05ms) by installer::windows::file::create_files_table at line 1038 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/file.pm
# once (89µs+5.82ms) by installer::windows::component::create_component_table at line 434 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/component.pm
# once (98µs+5.71ms) by installer::windows::msiglobal::save_packorder at line 418 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm
# once (62µs+4.01ms) by installer::windows::featurecomponent::create_featurecomponent_table at line 168 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/featurecomponent.pm
# once (63µs+3.94ms) by installer::windows::assembly::add_assembly_condition_into_component_table at line 312 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/assembly.pm
# once (30µs+1.29ms) by installer::windows::removefile::create_removefile_table at line 144 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/removefile.pm
# once (40µs+1.14ms) by installer::windows::inifile::create_inifile_table at line 143 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/inifile.pm
# once (37µs+1.13ms) by installer::windows::createfolder::create_createfolder_table at line 151 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/createfolder.pm
# once (32µs+1.11ms) by installer::windows::assembly::create_msiassembly_table at line 188 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/assembly.pm
# once (38µs+1.11ms) by installer::windows::font::create_font_table at line 72 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/font.pm
# once (48µs+1.02ms) by installer::windows::media::create_media_table at line 322 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/media.pm
# once (20µs+664µs) by installer::windows::assembly::create_msiassemblyname_table at line 252 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/assembly.pm
# once (19µs+615µs) by installer::windows::upgrade::create_upgrade_table at line 139 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/upgrade.pm
# once (17µs+616µs) by installer::windows::icon::create_icon_table at line 62 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/icon.pm
# once (29µs+490µs) by installer::windows::msiglobal::put_msiproductversion_into_bootstrapfile at line 1542 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/msiglobal.pm | ||||
75 | 7502 | 14.8ms | my ($savefile, $savecontent) = @_; | ||
76 | |||||
77 | 7502 | 3.07s | 7502 | 2.97s | if ( open( OUT, ">$savefile" ) ) # spent 2.97s making 7502 calls to installer::files::CORE:open, avg 396µs/call |
78 | { | ||||
79 | 7502 | 3.44s | 7502 | 3.38s | print OUT @{$savecontent}; # spent 3.38s making 7502 calls to installer::files::CORE:print, avg 451µs/call |
80 | 7502 | 893ms | 7502 | 849ms | close( OUT); # spent 849ms making 7502 calls to installer::files::CORE:close, avg 113µs/call |
81 | } | ||||
82 | else | ||||
83 | { | ||||
84 | # it is useless to save a log file, if there is no write access | ||||
85 | |||||
86 | if ( $savefile =~ /\.log/ ) | ||||
87 | { | ||||
88 | print "\n*************************************************\n"; | ||||
89 | print "ERROR: Cannot write log file $savefile, $!"; | ||||
90 | print "\n*************************************************\n"; | ||||
91 | exit(-1); # exiting the program to avoid endless loops | ||||
92 | } | ||||
93 | |||||
94 | installer::exiter::exit_program("ERROR: Cannot open file $savefile for writing", "save_file"); | ||||
95 | } | ||||
96 | } | ||||
97 | |||||
98 | ########################################### | ||||
99 | # Binary file operations | ||||
100 | ########################################### | ||||
101 | |||||
102 | sub read_binary_file | ||||
103 | # spent 5.03ms (916µs+4.11) within installer::files::read_binary_file which was called 9 times, avg 558µs/call:
# 9 times (916µs+4.11ms) by installer::scppatchsoname::replace_productname_in_file at line 93 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/scppatchsoname.pm, avg 558µs/call | ||||
104 | 9 | 10µs | my ($filename) = @_; | ||
105 | |||||
106 | 9 | 4µs | my $file; | ||
107 | |||||
108 | 9 | 2.14ms | 9 | 2.07ms | open( IN, "<$filename" ) || installer::exiter::exit_program("ERROR: Cannot open file $filename for reading", "read_binary_file"); # spent 2.07ms making 9 calls to installer::files::CORE:open, avg 230µs/call |
109 | 9 | 64µs | 9 | 18µs | binmode IN; # spent 18µs making 9 calls to installer::files::CORE:binmode, avg 2µs/call |
110 | 9 | 121µs | 9 | 79µs | seek IN, 0, 2; # spent 79µs making 9 calls to installer::files::CORE:seek, avg 9µs/call |
111 | 9 | 49µs | 9 | 9µs | my $length = tell IN; # spent 9µs making 9 calls to installer::files::CORE:tell, avg 1µs/call |
112 | 9 | 61µs | 9 | 29µs | seek IN, 0, 0; # spent 29µs making 9 calls to installer::files::CORE:seek, avg 3µs/call |
113 | 9 | 1.68ms | 9 | 1.64ms | read IN, $file, $length; # spent 1.64ms making 9 calls to installer::files::CORE:read, avg 182µs/call |
114 | 9 | 309µs | 9 | 266µs | close IN; # spent 266µs making 9 calls to installer::files::CORE:close, avg 30µs/call |
115 | |||||
116 | 9 | 600µs | return $file; | ||
117 | } | ||||
118 | |||||
119 | sub save_binary_file | ||||
120 | # spent 9.09ms (954µs+8.13) within installer::files::save_binary_file which was called 9 times, avg 1.01ms/call:
# 9 times (954µs+8.13ms) by installer::scppatchsoname::replace_productname_in_file at line 128 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/scppatchsoname.pm, avg 1.01ms/call | ||||
121 | 9 | 703µs | my ($file, $filename) = @_; | ||
122 | |||||
123 | 9 | 3.77ms | 9 | 3.69ms | open( OUT, ">$filename" ) || installer::exiter::exit_program("ERROR: Cannot open file $filename for writing", "save_binary_file"); # spent 3.69ms making 9 calls to installer::files::CORE:open, avg 410µs/call |
124 | 9 | 54µs | 9 | 19µs | binmode OUT; # spent 19µs making 9 calls to installer::files::CORE:binmode, avg 2µs/call |
125 | 9 | 3.67ms | 9 | 3.61ms | print OUT $file; # spent 3.61ms making 9 calls to installer::files::CORE:print, avg 401µs/call |
126 | 9 | 913µs | 9 | 814µs | close OUT; # spent 814µs making 9 calls to installer::files::CORE:close, avg 90µs/call |
127 | } | ||||
128 | |||||
129 | 1 | 7µs | 1; | ||
sub installer::files::CORE:binmode; # opcode | |||||
# spent 1.16s within installer::files::CORE:close which was called 16917 times, avg 68µs/call:
# 9397 times (308ms+0s) by installer::files::read_file at line 64, avg 33µs/call
# 7502 times (849ms+0s) by installer::files::save_file at line 80, avg 113µs/call
# 9 times (814µs+0s) by installer::files::save_binary_file at line 126, avg 90µs/call
# 9 times (266µs+0s) by installer::files::read_binary_file at line 114, avg 30µs/call | |||||
# spent 540µs within installer::files::CORE:ftfile which was called 3 times, avg 180µs/call:
# 3 times (540µs+0s) by installer::files::check_file at line 44, avg 180µs/call | |||||
# spent 5.41s within installer::files::CORE:open which was called 16917 times, avg 320µs/call:
# 9397 times (2.44s+0s) by installer::files::read_file at line 55, avg 259µs/call
# 7502 times (2.97s+0s) by installer::files::save_file at line 77, avg 396µs/call
# 9 times (3.69ms+0s) by installer::files::save_binary_file at line 123, avg 410µs/call
# 9 times (2.07ms+0s) by installer::files::read_binary_file at line 108, avg 230µs/call | |||||
sub installer::files::CORE:print; # opcode | |||||
# spent 1.64ms within installer::files::CORE:read which was called 9 times, avg 182µs/call:
# 9 times (1.64ms+0s) by installer::files::read_binary_file at line 113, avg 182µs/call | |||||
# spent 12.6s within installer::files::CORE:readline which was called 14838796 times, avg 848ns/call:
# 14838796 times (12.6s+0s) by installer::files::read_file at line 60, avg 848ns/call | |||||
sub installer::files::CORE:seek; # opcode | |||||
# spent 9µs within installer::files::CORE:tell which was called 9 times, avg 1µs/call:
# 9 times (9µs+0s) by installer::files::read_binary_file at line 111, avg 1µs/call |