Obviously, you can't print the time of the RENDER_RESPONSE
phase in the page you want to get the rendering time. But you could save the timing in a view or session scope [1] bean and call it later (e.g. using Ajax) in your page.
Alternative: stores the process times in a bean and use it to render a special debug page where you can monitor all the timings of all the rendered page. This way you also don't mix debug information in a productive page.
By the way, I find your idea quite strange. I usually simply look at the logs in the server logs. I also always configure a custom PhaseListener
which logs the processing time for each phase and configure it to log times in a special log (e.g. perf.log
).
Links: