<?php namespace ay\xhprof; if (!\ay\error_present()) { $data = $xhprof_data_obj->getUris($_GET['xhprof']['query']); if (empty($data)) { \ay\message('No results matching your search were found.', 'notice'); } } require __DIR__ . '/form.inc.tpl.php'; if (empty($data['discrete'])) { return; } require __DIR__ . '/summary.inc.tpl.php'; ?> <div class="table-wrapper"> <table class="uris ay-sort"> <thead class="ay-sticky"> <tr> <?php if (empty($_GET['ay']['query']['host_id'])) { ?> <th class="ay-sort ay-sort-asc host" rowspan="2">Host</th> <?php } ?> <th class="ay-sort uri" rowspan="2">URI</th> <th class="ay-sort regular" rowspan="2">Request Count</th> <th class="heading" colspan="4">Average</th> </tr>
?> <?php if ($template['file'] == 'request' && empty($_GET['xhprof']['query']['second_request_id'])) { ?> <a href="<?php echo url('request', array('request_id' => $request['id']), array('callgraph' => 1)); ?> " class="callgraph" target="_blank">Callgraph</a> <?php } ?> </div> <?php unset($navigation); if (!\ay\error_present() && !empty($_GET['xhprof']['query'])) { $labels = array('host_id' => 'Host #', 'host' => 'Host', 'uri_id' => 'URI #', 'uri' => 'URI', 'request_id' => 'Request #', 'second_request_id' => 'Second Request #', 'callee_id' => 'Function #', 'datetime_from' => 'Date-time from', 'datetime_to' => 'Date-time to', 'dataset_size' => 'Dataset Size'); ?> <div class="filters"> <p>The following filters affect the displayed data:</p> <dl> <?php foreach ($_GET['xhprof']['query'] as $k => $v) { if (!isset($labels[$k])) { throw new \Exception('Filter label is not defined.'); } if ($k == 'host_id') { ?> <dt><?php echo $labels[$k]; ?>