• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Looking for a JASS profiler

Level 28
Joined
Feb 2, 2006
Messages
1,633
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?
 
Top