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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user