Profiling the JPublish web applications
We recently deployed a lot of new functionality to a very complex JPublish driven web site and profiling many aspects of the code we developed was a mandatory prerequisite. To make our life easier, we used the very simple profiling tool provided as Open Source by the Atlassian team: atlassian-profiler.
The atlassian-profiler lib is now integrated with the JPublish framework and profiling can be easily enabled by tweaking your jpublish.xml configuration file. For example, to enable the JPublish profiler, simply add the following line to the jpublish.xml config file:
<profiling>true</profiling>You can also set the minimum time reported in the trace when profiling. You probably only want to
profile methods that take more than 50ms, which is done like so:
<profiling MIN_TIME="50">true</profiling>After that check your console for interesting facts :)
We discovered with satisfaction that the new ability to execute JPublish Actions via AJAX DWR calls works beautifully and the overhead is unbelievable small. Once again DWR rocks!
Watch our JPublish site for more goodies to come :)
Cheers!
-florin
