Is the IDE Slow? Send a Profiling Snapshot
In NetBeans 6.9 is available [I]Profile me Now![/I] feature as well for PHP distribution. This feature generate a snapshot to understand what's going on if you think that the IDE is slow. By default the feature is not visible and you have to enable the IDE's self-profiling feature. Go to [I]View[/I] main menu, then choose [I]Toolbar[/I] and enable [I]Memory[/I] toolbar.
Now you should see Memory toolbar and also [I]Profile Me[/I] button.
Prepare the IDE for the operation that seems to be slow. Press the [I]Profile Me[/I] button or use shortcut [I]ALT+SHIFT+Y[/I] to start to collecting data. The icon of the button is change during profiling.
Perform the operation and when it's done, press the [I]Profile Me[/I] button again or press the shortcut ALT+SHIFT+Y to stop profiling.
IDE creates a profiling snapshot and because there is not Profiler installed by default in PHP distribution, an information dialog is displayed with the path where the snapshot is saved.
If you don't use PHP distro or you installed the Java Profiler (the Java Profiler requires java support), then the snapshot is opened in NetBeans. In this case you have to save it via Export to ... button.
To provide a useful snapshot as much as possible, try to isolate the problematic operation so the snapshot doesn't contain other irrelevant data. For different problems create separate snapshots. Make sure there are no other CPU-heavy tasks running on your computer.
The CPU snapshot is in fact a set of thread dumps taken severaltimes per second (sampling technique). It has a very low overhead, soalmost does not affect the running IDE. It is not suitable forprofiling very short operations (under 1 second). The snapshot containsno memory data. In case of problems with memory, see [URL="http://wiki.netbeans.org/FaqMemoryDump"] how to create a memory dump[/URL].
Check the memory bar to make sure the IDE does not run closeto memory limits (click the bar to force garbage collection). In suchcase the slowness is caused by frequent garbage collections, and thewhole problem is likely memory-related. You might see OutOfMemoryError too. In such case a [URL="http://wiki.netbeans.org/FaqMemoryDump"] memory dump[/URL] is needed.
[url=http://blogs.sun.com/netbeansphp/entry/is_the_ide_slow_send]Read More about [Is the IDE Slow? Send a Profiling Snapshot ...[/url]