| Filename | /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer/windows/icon.pm |
| Statements | Executed 24 statements in 647µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 421µs | 424µs | installer::windows::icon::BEGIN@21 |
| 1 | 1 | 1 | 77µs | 774µs | installer::windows::icon::create_icon_table |
| 1 | 1 | 1 | 17µs | 19µs | installer::windows::icon::BEGIN@23 |
| 1 | 1 | 1 | 16µs | 18µs | installer::windows::icon::BEGIN@22 |
| 1 | 1 | 1 | 14µs | 16µs | installer::windows::icon::BEGIN@24 |
| 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 | |||||
| 19 | package installer::windows::icon; | ||||
| 20 | |||||
| 21 | 2 | 61µs | 2 | 426µ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 # spent 424µs making 1 call to installer::windows::icon::BEGIN@21
# spent 2µs making 1 call to UNIVERSAL::import |
| 22 | 2 | 60µs | 2 | 21µ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 # spent 18µs making 1 call to installer::windows::icon::BEGIN@22
# spent 3µs making 1 call to UNIVERSAL::import |
| 23 | 2 | 55µs | 2 | 21µ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 # spent 19µs making 1 call to installer::windows::icon::BEGIN@23
# spent 2µs making 1 call to UNIVERSAL::import |
| 24 | 2 | 402µs | 2 | 18µ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 # 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 | |||||
| 32 | sub 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 | ||||
| 34 | 15 | 62µs | my ($iconfilecollector, $basedir) = @_; | ||
| 35 | |||||
| 36 | my @icontable = (); | ||||
| 37 | |||||
| 38 | 1 | 28µ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 | |||||
| 43 | for ( my $i = 0; $i <= $#{$iconfilecollector}; $i++ ) | ||||
| 44 | { | ||||
| 45 | my $iconfile = ${$iconfilecollector}[$i]; | ||||
| 46 | |||||
| 47 | 1 | 35µs | installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$iconfile); # spent 35µs making 1 call to installer::pathanalyzer::make_absolute_filename_to_relative_filename | ||
| 48 | |||||
| 49 | my %icon = (); | ||||
| 50 | |||||
| 51 | $icon{'Name'} = $iconfile; # simply soffice.exe | ||||
| 52 | $icon{'Data'} = $iconfile; # simply soffice.exe | ||||
| 53 | |||||
| 54 | my $oneline = $icon{'Name'} . "\t" . $icon{'Data'} . "\n"; | ||||
| 55 | |||||
| 56 | push(@icontable, $oneline); | ||||
| 57 | } | ||||
| 58 | |||||
| 59 | # Saving the file | ||||
| 60 | |||||
| 61 | my $icontablename = $basedir . $installer::globals::separator . "Icon.idt"; | ||||
| 62 | 1 | 633µs | installer::files::save_file($icontablename ,\@icontable); # spent 633µs making 1 call to installer::files::save_file | ||
| 63 | my $infoline = "Created idt file: $icontablename\n"; | ||||
| 64 | push(@installer::globals::logfileinfo, $infoline); | ||||
| 65 | |||||
| 66 | } | ||||
| 67 | |||||
| 68 | 1 | 7µs | 1; |