[squeak-dev] [Vm-dev] The Trunk: System-codefrau.1205.mcz
vanessa at codefrau.net
Tue Dec 22 22:07:30 UTC 2020
On Tue, Dec 22, 2020 at 1:57 PM Eliot Miranda <eliot.miranda at gmail.com>
> On Tue, Dec 22, 2020 at 1:44 PM Vanessa Freudenberg <vanessa at codefrau.net>
>> I like measuring all-over performance, and not adding any extra work.
>> Like, DateAndTime is pretty early in the startup list. It could remember
>> the time its startup was invoked. Another class that comes later could set
>> a LowPerformance flag if it took longer than x ms since DateAndTime was
>> I just tried that with ProcessorScheduler (see attachment). On Safari and
>> a 5.3 image I get ImageStartMS = 133 ms, on Chrome 250 ms. On a fast VM I
>> get 5 ms. So maybe if that takes longer than say 50 ms it could be
>> considered low performance?
> Works for me. I would record and provide an accessor for ImageStartUsecs
> (a class variable in SmalltalkImage, using microseconds :-) ). Then one
> can either use isLowerPerformance or the actual time for a more "nuanced"
Good idea. It also should use class vars not globals, etc.
I didn't mean to use this as is, just to do a quick proof of concept. And I
didn't see Dave's take come through yet ... or are announcements from
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev