Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from mzeis/dev
- Loading branch information
Showing
7 changed files
with
157 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
class Aoe_Profiler_Block_Info extends Mage_Adminhtml_Block_Template | ||
{ | ||
/** | ||
* @return Aoe_Profiler_Model_Run | ||
*/ | ||
public function getStack() | ||
{ | ||
return Mage::registry('current_stack_instance'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
app/design/adminhtml/default/default/template/aoe_profiler/view/info.phtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/** | ||
* @var $this Aoe_Profiler_Block_Info | ||
*/ | ||
$_stack = $this->getStack(); | ||
?> | ||
<div class="entry-edit"> | ||
<div class="entry-edit-head"><h4 class="icon-head"><?php echo $this->__('Run Details') ?></h4></div> | ||
<fieldset> | ||
<table cellspacing="2" class="box-left"> | ||
<tr> | ||
<td><strong><?php echo $this->__('Created:') ?></strong></td> | ||
<td><?php echo $this->formatDate($_stack->getCreatedAt(), Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true); ?></td> | ||
</tr> | ||
<tr> | ||
<td><strong><?php echo $this->__('Route:') ?></strong></td> | ||
<td><?php echo $this->escapeHtml($_stack->getRoute()); ?></td> | ||
</tr> | ||
<tr> | ||
<td><strong><?php echo $this->__('URL:') ?></strong></td> | ||
<td><?php echo $this->escapeHtml($_stack->getUrl()); ?></td> | ||
</tr> | ||
<tr> | ||
<td><strong><?php echo $this->__('Session Id:') ?></strong></td> | ||
<td><?php echo $this->escapeHtml($_stack->getSessionId()); ?></td> | ||
</tr> | ||
<tr> | ||
<td><strong><?php echo $this->__('Time [sec]:') ?></strong></td> | ||
<td><?php echo $this->escapeHtml($_stack->getTotalTime()); ?></td> | ||
</tr> | ||
<tr> | ||
<td><strong><?php echo $this->__('Memory [MB]') ?></strong></td> | ||
<td><?php echo $this->escapeHtml($_stack->getTotalMemory()); ?></td> | ||
</tr> | ||
</table> | ||
</fieldset> | ||
</div> |