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

Filename/cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/icon.pm
StatementsExecuted 24 statements in 647µs
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111421µs424µsinstaller::windows::icon::::BEGIN@21installer::windows::icon::BEGIN@21
11177µs774µsinstaller::windows::icon::::create_icon_tableinstaller::windows::icon::create_icon_table
11117µs19µsinstaller::windows::icon::::BEGIN@23installer::windows::icon::BEGIN@23
11116µs18µsinstaller::windows::icon::::BEGIN@22installer::windows::icon::BEGIN@22
11114µs16µsinstaller::windows::icon::::BEGIN@24installer::windows::icon::BEGIN@24
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1#
2# This file is part of the LibreOffice project.
3#
4# This Source Code Form is subject to the terms of the Mozilla Public
5# License, v. 2.0. If a copy of the MPL was not distributed with this
6# file, You can obtain one at http://mozilla.org/MPL/2.0/.
7#
8# This file incorporates work covered by the following license notice:
9#
10# Licensed to the Apache Software Foundation (ASF) under one or more
11# contributor license agreements. See the NOTICE file distributed
12# with this work for additional information regarding copyright
13# ownership. The ASF licenses this file to you under the Apache
14# License, Version 2.0 (the "License"); you may not use this file
15# except in compliance with the License. You may obtain a copy of
16# the License at http://www.apache.org/licenses/LICENSE-2.0 .
17#
18
19package installer::windows::icon;
20
21261µs2426µs
# spent 424µs (421+3) within installer::windows::icon::BEGIN@21 which was called: # once (421µs+3µs) by installer::BEGIN@70 at line 21
use installer::files;
# spent 424µs making 1 call to installer::windows::icon::BEGIN@21 # spent 2µs making 1 call to UNIVERSAL::import
22260µs221µs
# spent 18µs (16+3) within installer::windows::icon::BEGIN@22 which was called: # once (16µs+3µs) by installer::BEGIN@70 at line 22
use installer::globals;
# spent 18µs making 1 call to installer::windows::icon::BEGIN@22 # spent 3µs making 1 call to UNIVERSAL::import
23255µs221µs
# spent 19µs (17+2) within installer::windows::icon::BEGIN@23 which was called: # once (17µs+2µs) by installer::BEGIN@70 at line 23
use installer::pathanalyzer;
# spent 19µs making 1 call to installer::windows::icon::BEGIN@23 # spent 2µs making 1 call to UNIVERSAL::import
242402µs218µs
# spent 16µs (14+2) within installer::windows::icon::BEGIN@24 which was called: # once (14µs+2µs) by installer::BEGIN@70 at line 24
use installer::windows::idtglobal;
# spent 16µs making 1 call to installer::windows::icon::BEGIN@24 # spent 2µs making 1 call to UNIVERSAL::import
25
26###########################################################################################################
27# Creating the file Icon.idt dynamically
28# Content:
29# Name Data
30###########################################################################################################
31
32sub create_icon_table
33
# spent 774µs (77+696) within installer::windows::icon::create_icon_table which was called: # once (77µs+696µs) by installer::run at line 1523 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
{
3414µs my ($iconfilecollector, $basedir) = @_;
35
3611µs my @icontable = ();
37
3816µs128µs installer::windows::idtglobal::write_idt_header(\@icontable, "icon");
# spent 28µs making 1 call to installer::windows::idtglobal::write_idt_header
39
40 # Only the iconfiles, that are used in the shortcut table for the
41 # FolderItems (entries in Windows startmenu) are added into the icon table.
42
4316µs for ( my $i = 0; $i <= $#{$iconfilecollector}; $i++ )
44 {
4513µs my $iconfile = ${$iconfilecollector}[$i];
46
4716µs135µs installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$iconfile);
48
4912µs my %icon = ();
50
5113µs $icon{'Name'} = $iconfile; # simply soffice.exe
5213µs $icon{'Data'} = $iconfile; # simply soffice.exe
53
5415µs my $oneline = $icon{'Name'} . "\t" . $icon{'Data'} . "\n";
55
5614µs push(@icontable, $oneline);
57 }
58
59 # Saving the file
60
6113µs my $icontablename = $basedir . $installer::globals::separator . "Icon.idt";
6213µs1633µs installer::files::save_file($icontablename ,\@icontable);
# spent 633µs making 1 call to installer::files::save_file
6314µs my $infoline = "Created idt file: $icontablename\n";
64112µs push(@installer::globals::logfileinfo, $infoline);
65
66}
67
6817µs1;