Now I've started looking at how to profile NetBeans Platform applications. And guess what? Big things are happening in this area of the NetBeans Platform. In the next days, I'll show one REALLY big enhancement in the NetBeans Profiler but, for now, I'll show how the integration between the NetBeans Profiler and the NetBeans Platform is handled. Start by comparing the two screenshots below:
Both are the result of running an 'empty' NetBeans Platform application, i.e., one generated from the template in NetBeans IDE. (In other words, I did not type a single character of code to create the above applications.) However, the lower one includes the memory toolbar and the Profiler button! Without any modules in the profiler cluster having been enabled. The above is all standard from the platform cluster, meaning that you can profile your application (i.e., start and stop the recording of a snapshot), which you can then open in the Profiler in NetBeans IDE. (Then, when you're ready for distribution, you can easily mask out those two toolbar elements so that they're not in your production code.)
Now is that cool or what.