seantronsen / pvt

GNU General Public License v3.0
0 stars 0 forks source link

Add event_name arg to perf_log decorator #28

Closed seantronsen closed 5 months ago

seantronsen commented 5 months ago

I'd like to reuse this decorator for other routines in Qt, notably the paint event to start getting an idea of the time to render the next frame.

seantronsen commented 5 months ago

the decorator has been adjusted to allow for this sort of functionality. however, wiring into the paint event is not the right answer for the second component of the request as it only gets executed during the initialization portion. this could be a side effect of pyqt graphs implementation, but likely it's just how Qt works.

Closing for now.

commit: ae60885