When analyzing application performance, you can choose to limit the source code that is instrumented by specifying a root method. When you profile an application by instrumenting a root method, profiling data is collected when one of the application's threads enters and leaves the root method.
The Edit Profiling Roots dialog box enables you to specify the profiling root methods that will be used when you analyze the performance of the application. You can open this dialog box from the Select Profiling Task dialog box by selecting the Advanced (instrumented) option and clicking customize (or edit if some root methods are already specified) when you select the analyze application performance task (CPU).
The dialog box displays a hierarchical view of the project. Expand the nodes and select the node for the method that you want to specify as a profiling root method.
The dialog box also contains the following elements for locating and organizing classes.
If you are profiling a web application you can select Web Application View or Package View from the dropdown list. For all other project types only Package View is available in the dropdown list.
Notes:
For more, see the following NetBeans FAQ: