(uncomon) debugging of AutoHotkey Script by using SqL-Stacktrace

Helpful script writing tricks and HowTo's
User avatar
SL5
Posts: 878
Joined: 12 May 2015, 02:10
Contact:

(uncomon) debugging of AutoHotkey Script by using SqL-Stacktrace

Post by SL5 » 28 Jan 2019, 12:17

build a own little stackTrace.

used regex to find functions in ahk-source: ^[ ]*?\w[\w\d_]{5,}\s*\([^()+<>]+\)[\s\S]{0,5}?\{

User avatar
SL5
Posts: 878
Joined: 12 May 2015, 02:10
Contact:

Re: (uncomon) debugging of AutoHotkey Script by using SqL-Stacktrace

Post by SL5 » 28 Jan 2019, 14:53



find most used function:

SELECT DISTINCT A_ThisFunc, count(A_ThisFunc) count FROM performance GROUP BY A_ThisFunc ORDER by count DESC

find slowest function:

SELECT DISTINCT A_ThisFunc, count(A_ThisFunc) count, millisec_dif_to_next_function_call FROM performance GROUP BY A_ThisFunc
ORDER by millisec_dif_to_next_function_call DESC

Post Reply

Return to “Tutorials (v1)”