src/Xhgui/Storage/File.php 1 location
|
@@ 260-268 (lines=9) @@
|
| 257 |
|
); |
| 258 |
|
$formattedDate = $date->format('Y-m-d H:i'); |
| 259 |
|
|
| 260 |
|
if (empty($result['result'][$formattedDate])) { |
| 261 |
|
$result['result'][$formattedDate] = array( |
| 262 |
|
'wall_times' => array(), |
| 263 |
|
'cpu_times' => array(), |
| 264 |
|
'mu_times' => array(), |
| 265 |
|
'pmu_times' => array(), |
| 266 |
|
'row_count' => 0 |
| 267 |
|
); |
| 268 |
|
} |
| 269 |
|
|
| 270 |
|
$result['result'][$formattedDate]['wall_times'][] = $row['profile']['main()']['wt']; |
| 271 |
|
$result['result'][$formattedDate]['cpu_times'][] = $row['profile']['main()']['cpu']; |
src/Xhgui/Storage/Pdo.php 1 location
|
@@ 268-276 (lines=9) @@
|
| 265 |
|
while ($row = $stmt->fetch(\PDO::FETCH_ASSOC)) { |
| 266 |
|
$date = new \DateTime($row['request_time']); |
| 267 |
|
$formattedDate = $date->format('Y-m-d H:i'); |
| 268 |
|
if (empty($aggregatedData[$formattedDate])) { |
| 269 |
|
$aggregatedData[$formattedDate] = array( |
| 270 |
|
'wall_times' => array(), |
| 271 |
|
'cpu_times' => array(), |
| 272 |
|
'mu_times' => array(), |
| 273 |
|
'pmu_times' => array(), |
| 274 |
|
'row_count' => 0 |
| 275 |
|
); |
| 276 |
|
} |
| 277 |
|
|
| 278 |
|
$aggregatedData[$formattedDate]['wall_times'][] = $row['main_wt']; |
| 279 |
|
$aggregatedData[$formattedDate]['cpu_times'][] = $row['main_cpu']; |