varaverk: memory top procs — top 3, inline right of total on same line
This commit is contained in:
@@ -155,7 +155,7 @@ function vv_memory_breakdown(): array {
|
||||
}
|
||||
arsort($grouped);
|
||||
$topProcs = [];
|
||||
foreach (array_slice($grouped, 0, 5, true) as $name => $kb)
|
||||
foreach (array_slice($grouped, 0, 3, true) as $name => $kb)
|
||||
$topProcs[] = ['name' => $name, 'kb' => $kb];
|
||||
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user