nxus / renderer

A rendering framework for Nxus applications.
0 stars 0 forks source link

Add logging instrumentation to show time spent rendering the stack #7

Open mjreich opened 4 years ago

mjreich commented 4 years ago

This can be very helpful in debugging performance issues, especially on pages with large numbers of render calls. Imaging a flag that would show total render time along with a total number of seconds per inline render.

loppear commented 4 years ago

Would be nice if nxus-router logged requests and response time, optionally with a config flag to raise log level for requests above a certain threshold. Then this would add to that by showing time spent in render vs processing. (Agree the per-inline-render tracking would want to be behind a request param, useful in specific debugging but too noisy for general use.)