Skip to content

Commit 2d83f3c

Browse files
committedSep 11, 2012
Add the same kind of performance data for Shortcuts, as AssetProxy macros.
1 parent b37f9d5 commit 2d83f3c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎lib/WebGUI/Asset/Shortcut.pm

+4-1
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,10 @@ sub view {
942942
# Make sure the www_view method won't be skipped b/c the asset is cached.
943943
$shortcut->purgeCache();
944944

945-
$content = $shortcut->view;
945+
my $t = ($self->session->log->canShowPerformanceIndicators()) ? [Time::HiRes::gettimeofday()] : undef;
946+
$content = $shortcut->view;
947+
$content .= "Shortcut:" . Time::HiRes::tv_interval($t)
948+
if $t;
946949

947950
# Make sure the overrides are not cached by the original asset.
948951
$shortcut->purgeCache();

0 commit comments

Comments
 (0)
Please sign in to comment.