Appliscale / xprof

A visual tracer and profiler for Erlang and Elixir.
Other
278 stars 33 forks source link

Introduce websocket for some updates from the server #54

Open gomoripeti opened 7 years ago

gomoripeti commented 7 years ago

Some of the REST endpoints (that are currently polled by the front end) could be replaced by websocket notifications from the server:

these definitely as they usually don't return new info

maybe these too:

afronski commented 7 years ago

I would add to it a small finding (not confirmed yet for 100%) - due to setTimeout and setState interleaved calls we are building up memory (plus consuming a lot of CPU for each frame) which sometimes leads to Aw snap! in Google Chrome and crashed tab.

My suggestion would be to stick to requestAnimationFrame (leveraging virtual DOM and React) and WS connection, and provide updates in more event-base fashion.