Révision ec4951b7
Add wasted memory to the graph, now the sum is always the total assigned memory
| plugins/php/php_opcache | ||
|---|---|---|
| 37 | 37 |
graph_args -l 0 --base 1024 |
| 38 | 38 |
graph_vlabel Memory usage |
| 39 | 39 |
graph_category php-opcache |
| 40 |
graph_order mem_used mem_free |
|
| 40 |
graph_order mem_used mem_free mem_wasted
|
|
| 41 | 41 |
graph_total Total |
| 42 | 42 |
mem_free.label Memory Free |
| 43 | 43 |
mem_free.draw STACK |
| ... | ... | |
| 45 | 45 |
mem_used.label Memory Used |
| 46 | 46 |
mem_used.draw AREA |
| 47 | 47 |
mem_used.min 0 |
| 48 |
mem_wasted.label Memory Wasted |
|
| 49 |
mem_wasted.draw STACK |
|
| 50 |
mem_wasted.min 0 |
|
| 48 | 51 |
EOM |
| 49 | 52 |
|
| 50 | 53 |
exit 0 |
| plugins/php/php_opcache.php | ||
|---|---|---|
| 9 | 9 |
$output = array( |
| 10 | 10 |
'mem_used.value' => $data['memory_usage']['used_memory'], |
| 11 | 11 |
'mem_free.value' => $data['memory_usage']['free_memory'], |
| 12 |
'mem_wasted.value' => $data['memory_usage']['wasted_memory'], |
|
| 12 | 13 |
); |
| 13 | 14 |
} |
| 14 | 15 |
else |
Formats disponibles : Unified diff