screepers / screeps-profiler

This is a profiler designed for use in the game of screeps.
194 stars 41 forks source link

[Question] profiler output #31

Open sergey-shablenko opened 1 year ago

sergey-shablenko commented 1 year ago

How to read this? Looking at column names, I assume that calls is the number of function calls during profiling period In what units is time measured? seconds, ms, ns? How are those averages calculated? If you look at screenshot, it shows 887114 of calls for lookFor, but total average is 32.18, what does it mean. I was looking for some ways of estimating CPU\RAM usage running code in training room before buying game license, how do I interpolate data from profiler into approximate usage?

image

tiennou commented 11 months ago

avg is time/calls, everything's in ticks. And estimating from the simulator might be way off, since it's running in the browser which is fast.