How do you profile a unit test in Netbeans 6.9 running on Ubuntu?
My research indicates that you use the "Profile test for ..." menu item. From the main menu you can see it at: Profile : Profile Other : Profile test for ClassName.
In my case the menu is always disabled. What do you do to enable this?
The easiest way to run all the unit tests for the project is to choose Run > Test <PROJECT_NAME> from the main menu. If you choose this method, the IDE runs all the test classes in the Test Packages. To run an individual test class, right-click the test class under the Test Packages node and choose Run File.
NetBeans IDE includes a powerful profiling tool that can provide important information about the runtime behavior of your application. The NetBeans profiling tool easily enables you to monitor thread states, CPU performance, and memory usage of your application from within the IDE, and imposes relatively low overhead.
The Profile Test For File menu will only be enabled when a testable class is selected, either in the project window or opened. It will not be enabled when the test class is selected!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With