Hi all … I’m using https://github.com/ptaoussanis/tufte to do some profiling of a slow re-frame app. I’m suspecting it’s my subscription handlers. I’m wondering if there’s a single convenient place to wrap a (profile {} ,,,)
block. My plan is to collect some stats across epochs, so I’d like to go a little further than what’s in 10x. (Or at least, what I’m aware’s in 10x).
I did some modeling with tufte. Seemed excellent.
Absolutely zero clue about tufte and how to do it in code - FWIW, personally, I would just use the browser's built-in profiler. Usually, works like a charm.
thanks … my possibly far-fetched idea was to wire up tufte so that I could collect timing bundles from testers’s browsers too, since tufte lets you do whatever you want with the collected stats (print, ship to an endpoint, whatever).
Ah, right. Hmm, I can't think of any way other than a custom version of reg-sub
that wraps re-frame.core/reg-sub
and also calls profile
on the handler function.
hm, yeah, that could work.