[Cuis-dev] benchmarking and profiling morph's drawOn:

Nicolás Papagna Maldonado nicolas.papagna at gmail.com
Wed Mar 4 04:57:25 PST 2026


Hi Luciano!

I've done an experiment about that in the past, inspired by a React tool
that does a similar thing.

The idea is to install a method wrapper on the #drawOn: method you want to
profile and gather metrics there (IIRC I did FPS, P90, P50, etc).
I also drew a box around the profiled morph and showed these metrics live,
too. IIRC I wrapped the #postDrawOn: method as well to display that.

Once you have the wrappers installed is easy to collect the info or do
whatever you want.

Here's a link to a Cuis Slack chat
<https://ba-st.slack.com/archives/CH47P6ZMK/p1682798005359369> where I
showed it (in spanish).

Cheers,
Nico PM


On Wed, Mar 4, 2026 at 9:17 AM Hernán Wilkinson via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> Not me but for sure Juan has done that or similar things many times....
> but he's still on vacation so let him enjoy!! hahaha.
>
> On Wed, Mar 4, 2026 at 5:07 AM Luciano Notarfrancesco via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
>> Does anyone do this? How do you do it? I've been using these two
>> methods, maybe someone will find them useful.
>>
>> bench
>>     | canvas form |
>>     form := Form extent: self morphExtent depth: Display depth.
>>     canvas := VectorCanvas onForm: form.
>>     ^ [self drawOn: canvas] bench
>>
>> timeProfile
>>     | canvas form |
>>     form := Form extent: self morphExtent depth: Display depth.
>>     canvas := VectorCanvas onForm: form.
>>     ^ [200 timesRepeat: [self drawOn: canvas]] timeProfile
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>
>
> --
>
> *Hernán WilkinsonAgile Software Development, Teaching & Coaching*
> *Phone: +54-011*-4893-2057
> *Twitter: @HernanWilkinson*
> *site: http://www.10Pines.com <http://www.10pines.com/>*
> Address: Alem 896, Floor 6, Buenos Aires, Argentina
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>


-- 

Nicolás Papagna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260304/4ab9fe1d/attachment-0001.htm>


More information about the Cuis-dev mailing list