← 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:53 2012

Filename/cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/binary.pm
StatementsExecuted 9597 statements in 23.0ms
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1091118.9ms107msinstaller::windows::binary::::update_binary_tableinstaller::windows::binary::update_binary_table
981114.20ms4.20msinstaller::windows::binary::::CORE:substinstaller::windows::binary::CORE:subst (opcode)
111369µs372µsinstaller::windows::binary::::BEGIN@30installer::windows::binary::BEGIN@30
11115µs17µsinstaller::windows::binary::::BEGIN@31installer::windows::binary::BEGIN@31
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::windows::binary;
29
30261µs2375µs
# spent 372µs (369+3) within installer::windows::binary::BEGIN@30 which was called: # once (369µs+3µs) by installer::BEGIN@62 at line 30
use installer::files;
# spent 372µs making 1 call to installer::windows::binary::BEGIN@30 # spent 3µs making 1 call to UNIVERSAL::import
312419µs219µs
# spent 17µs (15+2) within installer::windows::binary::BEGIN@31 which was called: # once (15µs+2µs) by installer::BEGIN@62 at line 31
use installer::globals;
# spent 17µs making 1 call to installer::windows::binary::BEGIN@31 # spent 2µs making 1 call to UNIVERSAL::import
32
33###########################################################################################################
34# Updating the table Binary dynamically with all files from $binarytablefiles
35# Content:
36# Name Data
37# s72 v0
38# Binary Name
39###########################################################################################################
40
41sub update_binary_table
42
# spent 107ms (18.9+88.2) within installer::windows::binary::update_binary_table which was called 109 times, avg 983µs/call: # 109 times (18.9ms+88.2ms) by installer::run at line 1661 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm, avg 983µs/call
{
43109214µs my ($languageidtdir, $filesref, $binarytablefiles) = @_;
44
45109207µs my $binaryidttablename = $languageidtdir . $installer::globals::separator . "Binary.idt";
46109334µs10940.9ms my $binaryidttable = installer::files::read_file($binaryidttablename);
# spent 40.9ms making 109 calls to installer::files::read_file, avg 376µs/call
47
48 # Only the iconfiles, that are used in the shortcut table for the
49 # FolderItems (entries in Windows startmenu) are added into the icon table.
50
511091.65ms for ( my $i = 0; $i <= $#{$binarytablefiles}; $i++ )
52 {
53981940µs my $binaryfile = ${$binarytablefiles}[$i];
549812.07ms my $binaryfilename = $binaryfile->{'Name'};
55981478µs my $binaryfiledata = $binaryfilename;
56
579817.71ms9814.20ms $binaryfilename =~ s/\.//g; # removing "." in filename: "abc.dll" to "abcdll" in name column
# spent 4.20ms making 981 calls to installer::windows::binary::CORE:subst, avg 4µs/call
58
59981826µs my %binary = ();
60
619811.34ms $binary{'Name'} = $binaryfilename;
629811.03ms $binary{'Data'} = $binaryfiledata;
63
649811.14ms my $oneline = $binary{'Name'} . "\t" . $binary{'Data'} . "\n";
65
669812.26ms push(@{$binaryidttable}, $oneline);
67 }
68
69 # Saving the file
70
71109376µs10943.1ms installer::files::save_file($binaryidttablename ,$binaryidttable);
# spent 43.1ms making 109 calls to installer::files::save_file, avg 395µs/call
72109202µs my $infoline = "Updated idt file: $binaryidttablename\n";
731091.75ms push(@installer::globals::logfileinfo, $infoline);
74}
75
7617µs1;
 
# spent 4.20ms within installer::windows::binary::CORE:subst which was called 981 times, avg 4µs/call: # 981 times (4.20ms+0s) by installer::windows::binary::update_binary_table at line 57, avg 4µs/call
sub installer::windows::binary::CORE:subst; # opcode