Hallo zusammen,
anbei ein Patch, welcher in apptime die Hash-Adressen in den Argumenten in den Definitionsnamen umwandelt. Das ist sehr hilfreich bei Timern eines Moduls, die mehrfach laufen für verschiedene Definitionen.
So kann man dann leicht erkennen, welche Definition für den Verzug verantwortlich ist, aufgrund des aufgelösten Hash-Arguments. Das ganze sieht beispielhaft so aus:
name function max count total average maxDly
BD_Player YAMAHA_BD_Set 3009 1 3009 3009.00 0 HASH(BD_Player); BD_Player; ?
tmr-YAMAHA_AVR_GetStatus HASH(0x5527e8) 135 38 3231 85.03 716 HASH(AV_Receiver)
LANCUL HMLAN_Read 115 40 1010 25.25 0 HASH(LANCUL)
FritzBox_AHA FBAHA_Read 70 7 241 34.43 0 HASH(FritzBox_AHA)
tmr-S0COUNTER_ReadingTimer HASH(0x5ef160) 16 6 86 14.33 6 HASH(Herd)
Bei "tmr-YAMAHA_AVR_GetStatus" und " tmr-S0COUNTER_ReadingTimer" kann man so sehen, bei welcher Definition dieser Timer so lange gebraucht hat.
Viele Grüße
Markus
hi,
ich habe das mit dem Namen eingebaut - etwas anders. In der Prozedur beim Datensammels warf es nicht rein, da hier strikt auf Performance geachtet werden muss. Daher mache iches umständlicher bei der ausgabe
Gruss Martin
Super, vielen Dank.
Gruß
Markus
Hallo Martin,
irgendwie passt da was nicht, da in der Ausgabe bei den Hash-Namen die Buchstaben H A S immer gelöscht werden:
name function max count total average maxDly
LANCUL HMLAN_Read 176 33 496 15.03 0 HASH(LNCUL)
Logfile FileLog_Log 50 81 50 0.62 0 HASH(Logfile); HASH(eizung_Bad)
Gesamte_Wohnung structure_Notify 14 81 420 5.19 0 HASH(Gesamte_Wohnung); HASH(V_Receiver)
tmr-S0COUNTER_ReadingTimer HASH(0x598458) 14 5 66 13.20 10 HASH(erd)
tmr-CUL_HM_ActCheck ActionDetector 11 10 101 10.10 10 ActionDetector
Jalousie_Wohnzimmer_notify notify_Exec 8 81 30 0.37 0 HASH(Jalousie_Wohnzimmer_notify); HASH(V_Receiver)
tmr-YAMAHA_BD_GetStatus HASH(0x105eac8) 8 10 80 8.00 12 HASH(BD_Player)
tmr-FW_closeOldClients 3 5 7 1.40 10
tmr-Twilight_sunpos HASH(0x12ac448) 3 1 3 3.00 9 HASH(0x12ac448)
tmr-YAMAHA_AVR_GetStatus HASH(0x540ea0) 2 30 60 2.00 8 HASH(V_Receiver)
CallMonitor_notify notify_Exec 1 81 1 0.01 0 HASH(CallMonitor_notify); HASH(V_Receiver)
FileLog_Heizung_Wohnzimmer FileLog_Log 1 81 1 0.01 0 HASH(FileLog_eizung_Wohnzimmer); HASH(V_Receiver)
Jalousie_Schlafzimmer_notify notify_Exec 1 81 30 0.37 0 HASH(Jalousie_chlafzimmer_notify); HASH(V_Receiver)
WEB FW_Read 1 4 1 0.25 0 HASH(WEB)
iPhone PRESENCE_Read 1 6 6 1.00 0 HASH(iPhone)
Batteriewarn_script notify_Exec 0 81 0 0.00 0
CUL CUL_Ready 0 313 0 0.00 0
Desire PRESENCE_Read 0 7 0 0.00 0
Dunstabzugshaube_an notify_Exec 0 5 0 0.00 0
FHEMWEB:192.168.179.49:49683 FW_Read 0 1 0 0.00 0
FileLog_Heizung_Bad FileLog_Log 0 4 0 0.00 0
LANCUL => LNCUL
AV_Receiver => V_Receiver
Heizung_Bad => eizung_Bad
Herd => erd
Jalousie_Schlafzimmer_notify => Jalousie_chlafzimmer_notify
FileLog_Heizung_Wohnzimmer => FileLog_eizung_Wohnzimmer
Kannst du das nochmal prüfen?
Siehe auch http://forum.fhem.de/index.php/topic,24569.0.html
Danke
Gruß
Markus