Looking for a JASS profiler

Status
Not open for further replies.
Level 29
Joined
Feb 2, 2006
Messages
1,691
Hi,
I was wondering if there is any JASS profiler to analyze the performance of JASS scripts.
It could modify all JASS functions in this way:

JASS:
function Max takes integer a, integer b returns integer
if (a >= b)
    return a
endif

return b
endfunction

...

function Max takes integer a, integer b returns integer
call StartProfiling("Max", 0)
if (a >= b)
     call EndProfiling("Max", 2)
    return a
endif

call EndProfiling("Max", 6)
return b
endfunction

StartProfiling and EndProfiling could start and stop some JASS timer and write the results into a text file with the help of Preload functions or simply store it to print it later.
The second parameter after the function name is the current line either in the function or the whole map script for tracing it back.
Parameters could be printed as well.

This would add a lot of overhead to the map script but help detecting really slow function calls in a big map script.

Is there no profiler yet or does it have too many disadvantages?
 
Status
Not open for further replies.
Back
Top