Skip to content

Commit

Permalink
Add the same kind of performance data for Shortcuts, as AssetProxy ma…
Browse files Browse the repository at this point in the history
…cros.
  • Loading branch information
perlDreamer committed Sep 11, 2012
1 parent b37f9d5 commit 2d83f3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/WebGUI/Asset/Shortcut.pm
Expand Up @@ -942,7 +942,10 @@ sub view {
# Make sure the www_view method won't be skipped b/c the asset is cached.
$shortcut->purgeCache();

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

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

0 comments on commit 2d83f3c

Please sign in to comment.