mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
Fix for new memory log output format
This commit is contained in:
@@ -21,8 +21,8 @@
|
|||||||
$mem_stats = '';
|
$mem_stats = '';
|
||||||
|
|
||||||
while (<>) {
|
while (<>) {
|
||||||
$gets{$1.$2} = $_ if /mem(pool)?_get.*-> 0x([0-9a-f]+)/;
|
$gets{$1.$2} = $_ if /mem_get\(([0-9]+), [0-9]+\) -> ([0-9a-f]+)/;
|
||||||
delete $gets{$1.$2} if /mem(pool)?_put\(0x[0-9a-f]+, 0x([0-9a-f]+)/;
|
delete $gets{$1.$2} if /mem_put\(([0-9]+), ([0-9a-f]+), [0-9]+\)/;
|
||||||
$mem_stats .= $_ if /\d+ gets, +(\d+) rem/ && $1 > 0;
|
$mem_stats .= $_ if /\d+ gets, +(\d+) rem/ && $1 > 0;
|
||||||
}
|
}
|
||||||
print join('', values %gets);
|
print join('', values %gets);
|
||||||
|
Reference in New Issue
Block a user