[squeak-dev] [Vm-dev] The Trunk: System-codefrau.1205.mcz

Vanessa Freudenberg vanessa at codefrau.net
Tue Dec 22 22:07:30 UTC 2020


(dropping vm-dev)

On Tue, Dec 22, 2020 at 1:57 PM Eliot Miranda <eliot.miranda at gmail.com>
wrote:

>
> On Tue, Dec 22, 2020 at 1:44 PM Vanessa Freudenberg <vanessa at codefrau.net>
> wrote:
>
>>
>> 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
>> initialized.
>>
>> 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"
> view.
>

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
squeaksource broken?

Vanessa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20201222/a5dce7fe/attachment.html>


More information about the Squeak-dev mailing list