98_fhemdebug.pm: show argument/name in timerlist if possible (Forum #120768)

git-svn-id: https://svn.fhem.de/fhem/trunk@24363 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2021-04-30 10:43:05 +00:00
parent 5c37d3a05f
commit d8acb32c19

View File

@@ -119,8 +119,11 @@ fhemdebug_timerList($)
my $cv = svref_2object($fnName);
$fnName = $cv->GV->NAME if($cv); # get function name
}
push(@res, sprintf("%s.%05d %s%s",
FmtDateTime($tt), int(($tt-int($tt))*100000), $fnName,
push(@res, sprintf("%s.%05d %s %s %s",
FmtDateTime($tt), int(($tt-int($tt))*100000),
$fnName,
($h->{ARG} && ref($h->{ARG}) eq "HASH" && $h->{ARG}{NAME} ?
$h->{ARG}{NAME} : ""),
$h->{STACKTRACE} ? $h->{STACKTRACE} : ""));
}
return join("\n", @res);