Files
prestashop/tools/profiling/templates/objectmodel.tpl
2026-04-09 18:31:51 +02:00

39 lines
904 B
Smarty

{**
* For the full copyright and license information, please view the
* docs/licenses/LICENSE.txt file that was distributed with this source code.
*}
<div class="row">
<h2>
<a name="objectModels">
ObjectModel instances
</a>
</h2>
<table class="table table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Instances</th>
<th>Source</th>
</tr>
</thead>
<tbody>
{foreach $objectmodel as $class => $info}
<tr>
<td>{$class}</td>
<td>
{objectmodel data=count($info)}
</td>
<td>
{foreach $info as $trace}
{str_replace([_PS_ROOT_DIR_, '\\'], ['', '/'], $trace['file'])}:{$trace['line']} ({$trace['function']}) [id: {$trace['id']}]
<br />
{/foreach}
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>