-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
profiling a reflex-dom app #238
Comments
@ababkin You should be able to do |
I'm sure others will have different recommendations, but the way I usually optimize things is to figure out which events / dynamics are firing most. I usually do this by thinking about which ones are the most likely suspects and then adding |
Thanks This is what I've tried:
it does look like it should have done the trick, but unfortunately it hasn't. |
Swap the arguments of obeliskRouteSegment
A beginner Reflex'er here.
I'm building a log inspection app that will be ingesting large logs (through a websocket) and displaying it in a native/web browser. I'm planning to be using
virtualListWithSelection
(https://github.com/reflex-frp/reflex-dom/blob/986e1cfb514e8a8832479924166920f783787742/reflex-dom-core/src/Reflex/Dom/Widget/Lazy.hs#L30) to support displaying a lot of entries in a list.Currently I am trying to profile the app to see where it spends most of its CPU time (which the app happily hogs).
The problem is that if i run it with
app +RTS -p
, it runs alright, but to stop the app, I pretty much have to kill the webkit window, which seems to prevent from populating theapp.prof
file (it stays at0
size)I would terminate the app normally, but I'm not aware of a way to do that for a
reflex-dom
app (I suppose FRP apps are meant to be run forever).Are there any tricks to get this profiling data?
The text was updated successfully, but these errors were encountered: