The number of paints constantly increases with time but that’s expected and there isn’t full repainting of the whole widget happening each time. Perhaps
more interesting info can be seen from how long each paint event took.

Looks like most paint events take around 1 ms. Does this tell anything useful? Well, considering at average about 1000 updates for the envelope widget could be done per second, there probably isn’t anything extraordinarily bad happening in the envelope drawing code.