← Index
NYTProf Performance Profile   « block view • line view • sub view »
For C:/lo/libo-master/solenv/bin/make_installer.pl
  Run on Mon Sep 24 00:52:54 2012
Reported on Mon Sep 24 07:34:49 2012

Filename/cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/files.pm
StatementsExecuted 86540 statements in 74.4s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
9397441351.6s66.9sinstaller::files::::read_fileinstaller::files::read_file
148387961112.6s12.6sinstaller::files::::CORE:readlineinstaller::files::CORE:readline (opcode)
16917415.41s5.41sinstaller::files::::CORE:openinstaller::files::CORE:open (opcode)
7511213.39s3.39sinstaller::files::::CORE:printinstaller::files::CORE:print (opcode)
16917411.16s1.16sinstaller::files::::CORE:closeinstaller::files::CORE:close (opcode)
75025124211ms7.41sinstaller::files::::save_fileinstaller::files::save_file
1112.79ms9.00msinstaller::files::::BEGIN@34installer::files::BEGIN@34
9111.64ms1.64msinstaller::files::::CORE:readinstaller::files::CORE:read (opcode)
911954µs9.09msinstaller::files::::save_binary_fileinstaller::files::save_binary_file
911916µs5.03msinstaller::files::::read_binary_fileinstaller::files::read_binary_file
311540µs540µsinstaller::files::::CORE:ftfileinstaller::files::CORE:ftfile (opcode)
111385µs393µsinstaller::files::::BEGIN@30installer::files::BEGIN@30
1821107µs107µsinstaller::files::::CORE:seekinstaller::files::CORE:seek (opcode)
33143µs583µsinstaller::files::::check_fileinstaller::files::check_file
182137µs37µsinstaller::files::::CORE:binmodeinstaller::files::CORE:binmode (opcode)
11132µs36µsinstaller::files::::BEGIN@33installer::files::BEGIN@33
11114µs29µsinstaller::files::::BEGIN@31installer::files::BEGIN@31
9119µs9µsinstaller::files::::CORE:tellinstaller::files::CORE:tell (opcode)
Call graph for these subroutines as a Graphviz dot language file.
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
28package installer::files;
29
30262µs2400µ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
use strict;
# spent 393µs making 1 call to installer::files::BEGIN@30 # spent 7µs making 1 call to strict::import
31256µs243µ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
use warnings;
# spent 29µs making 1 call to installer::files::BEGIN@31 # spent 14µs making 1 call to warnings::import
32
33262µs240µ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
use installer::exiter;
# spent 36µs making 1 call to installer::files::BEGIN@33 # spent 4µs making 1 call to UNIVERSAL::import
3422.14ms29.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
use installer::logger;
# 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
40sub 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
{
4236µs my ($arg) = @_;
43
443586µs3540µ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
50sub 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
{
52939711.8ms my ($localfile) = @_;
5393977.79ms my @localfile = ();
54
5593972.50s93972.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
60939764.0s1483879612.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
649397346ms9397308ms close( IN );
# spent 308ms making 9397 calls to installer::files::CORE:close, avg 33µs/call
65
66939766.3ms return \@localfile;
67}
68
69###########################################
70# Saving files, arrays and hashes
71###########################################
72
73sub 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
{
75750214.8ms my ($savefile, $savecontent) = @_;
76
7775023.07s75022.97s if ( open( OUT, ">$savefile" ) )
# spent 2.97s making 7502 calls to installer::files::CORE:open, avg 396µs/call
78 {
7975023.44s75023.38s print OUT @{$savecontent};
# spent 3.38s making 7502 calls to installer::files::CORE:print, avg 451µs/call
807502893ms7502849ms 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
102sub 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
{
104910µs my ($filename) = @_;
105
10694µs my $file;
107
10892.14ms92.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
109964µs918µs binmode IN;
# spent 18µs making 9 calls to installer::files::CORE:binmode, avg 2µs/call
1109121µs979µs seek IN, 0, 2;
# spent 79µs making 9 calls to installer::files::CORE:seek, avg 9µs/call
111949µs99µs my $length = tell IN;
# spent 9µs making 9 calls to installer::files::CORE:tell, avg 1µs/call
112961µs929µs seek IN, 0, 0;
# spent 29µs making 9 calls to installer::files::CORE:seek, avg 3µs/call
11391.68ms91.64ms read IN, $file, $length;
# spent 1.64ms making 9 calls to installer::files::CORE:read, avg 182µs/call
1149309µs9266µs close IN;
# spent 266µs making 9 calls to installer::files::CORE:close, avg 30µs/call
115
1169600µs return $file;
117}
118
119sub 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
{
1219703µs my ($file, $filename) = @_;
122
12393.77ms93.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
124954µs919µs binmode OUT;
# spent 19µs making 9 calls to installer::files::CORE:binmode, avg 2µs/call
12593.67ms93.61ms print OUT $file;
# spent 3.61ms making 9 calls to installer::files::CORE:print, avg 401µs/call
1269913µs9814µs close OUT;
# spent 814µs making 9 calls to installer::files::CORE:close, avg 90µs/call
127}
128
12917µs1;
 
# spent 37µs within installer::files::CORE:binmode which was called 18 times, avg 2µs/call: # 9 times (19µs+0s) by installer::files::save_binary_file at line 124, avg 2µs/call # 9 times (18µs+0s) by installer::files::read_binary_file at line 109, avg 2µs/call
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
sub installer::files::CORE:close; # opcode
# 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
sub installer::files::CORE:ftfile; # opcode
# 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:open; # opcode
# spent 3.39s within installer::files::CORE:print which was called 7511 times, avg 451µs/call: # 7502 times (3.38s+0s) by installer::files::save_file at line 79, avg 451µs/call # 9 times (3.61ms+0s) by installer::files::save_binary_file at line 125, avg 401µ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
sub installer::files::CORE:read; # opcode
# 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:readline; # opcode
# spent 107µs within installer::files::CORE:seek which was called 18 times, avg 6µs/call: # 9 times (79µs+0s) by installer::files::read_binary_file at line 110, avg 9µs/call # 9 times (29µs+0s) by installer::files::read_binary_file at line 112, avg 3µs/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
sub installer::files::CORE:tell; # opcode