screeps-profiler icon indicating copy to clipboard operation
screeps-profiler copied to clipboard

This is a profiler designed for use in the game of screeps.

Results 12 screeps-profiler issues
Sort by recently updated
recently updated
newest added

Simply put, a previous refactor incorrectly altered the way the elapsed ticks was calculated. Previously, if given the following: ``` //Game.time === 120; Game.profiler.profile(5) Memory.profiler.enabledTick = 120; // correct Memory.profiler.disableTick...

When I use the profiler it seems to go through phases where for a few ticks, it crashes with an AlreadyWrappedError. I added a log statement, and it turns out...

- preserve function properties - wrap static functions - skip non-writable value properties - fix constructor wrapping - register all game objects by default

Report is an object that can be created (and optionally saved) from the current profiling data. It can be consumed by output functions (stream, email, custom). Long term I can...

It's currently not possible to profile Memory deserialization cost, because the Profiler accesses (and therefor deserializes) Memory when checking if it should be profiling. This can be solved in one...

The profiler should be able to profile a certain section of code. Currently you would have to wrap it into a function and call that: ``` // some code profiler.registerFN(()...

Major: time is now excluding sub-function call times list now differentiated by parent function Minor: added sum, as measured sum of function calls added init, as time spend initiating added...