jazzdotdev / jazz

The Scripting Engine that Combines Speed, Safety, and Simplicity
Apache License 2.0
146 stars 11 forks source link

Add module timer through code weaving #201

Closed aleksanderwlodarczyk closed 5 years ago

dariusc93 commented 5 years ago

Were you having issues with pulling changes from git with what you had locally?

naturallymitchell commented 5 years ago

this doesn't add the timer to require()'d modules

naturallymitchell commented 5 years ago

re: screenshot_from_2019-01-11_05-31-49

we need to time the execution of each module when it runs, not the time it takes to require it

patch the modules when they're loaded so that the started timer outputs the difference at the end of its run

(also, git pull before hacking to make this cleaner)