This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-05
Channels
- # announcements (12)
- # babashka (29)
- # bangalore-clj (3)
- # beginners (153)
- # calva (2)
- # chlorine-clover (46)
- # cider (11)
- # clj-kondo (21)
- # cljfx (20)
- # cljs-dev (3)
- # clojure (393)
- # clojure-australia (2)
- # clojure-europe (15)
- # clojure-spec (40)
- # clojure-uk (1)
- # clojurescript (3)
- # community-development (1)
- # conjure (2)
- # cursive (1)
- # data-oriented-programming (1)
- # datomic (7)
- # defnpodcast (2)
- # docs (2)
- # figwheel-main (5)
- # fulcro (52)
- # graalvm (2)
- # inf-clojure (21)
- # malli (10)
- # meander (6)
- # mid-cities-meetup (13)
- # nrepl (1)
- # off-topic (24)
- # other-languages (1)
- # pathom (3)
- # polylith (18)
- # re-frame (6)
- # reitit (11)
- # ring-swagger (2)
- # shadow-cljs (56)
- # specter (1)
- # xtdb (7)
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).
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.
I did some modeling with tufte. Seemed excellent.