← 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:33 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
{
43959222.5ms my ($languageidtdir, $filesref, $binarytablefiles) = @_;
44
45 my $binaryidttablename = $languageidtdir . $installer::globals::separator . "Binary.idt";
4610940.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
51 for ( my $i = 0; $i <= $#{$binarytablefiles}; $i++ )
52 {
53 my $binaryfile = ${$binarytablefiles}[$i];
54 my $binaryfilename = $binaryfile->{'Name'};
55 my $binaryfiledata = $binaryfilename;
56
579814.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
59 my %binary = ();
60
61 $binary{'Name'} = $binaryfilename;
62 $binary{'Data'} = $binaryfiledata;
63
64 my $oneline = $binary{'Name'} . "\t" . $binary{'Data'} . "\n";
65
66 push(@{$binaryidttable}, $oneline);
67 }
68
69 # Saving the file
70
7110943.1ms installer::files::save_file($binaryidttablename ,$binaryidttable);
# spent 43.1ms making 109 calls to installer::files::save_file, avg 395µs/call
72 my $infoline = "Updated idt file: $binaryidttablename\n";
73 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