2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

98_fhemdebug.pm: add some logging to identify crash source (Forum #73490)

git-svn-id: https://svn.fhem.de/fhem/trunk@15579 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-12-09 17:47:25 +00:00
parent 8ffbeacd76
commit f4b5a1950f

View File

@ -132,10 +132,12 @@ fhemdebug_memusage($)
if($mname eq "main::" &&
($n eq "modules" || $n eq "defs" || $n eq "readyfnlist")) {
for my $mn (keys %{$main::{$n}}) {
Log 5, "$mname$n::$mn";
$ts{"$mname$n::$mn"} = Devel::Size::total_size($main::{$n}{$mn});
}
} else {
Log 5, "$mname$n";
$ts{"$mname$n"} = Devel::Size::total_size($h->{$n});
}