Page 1 of 1

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

Posted: 28 Jan 2019, 12:17
by SL5
build a own little stackTrace.

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

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

Posted: 28 Jan 2019, 14:53
by SL5


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