Follow steps in profiler test suite TS71, section 10.3 (Local - Direct - Applet).
0) Click "change..." link for Attach Mode at bottom of "Attach Profiler" dialog.
1) Select target type Appler, attach method "Local", attach invocation "Direct".
2) Click Next button twice. On "Manual Integration" panel, select "Java SE 7.0".
3) In Step 2, "insert following string", attach will fail if NetBeans has been installed to a directory with spaces in the name, e.g. -agentpath:/mnt/common/NetBeans 7.1/profiler... must be -agentpath:"/mnt/common/NetBeans 7.1/profiler..."
Integrated into 'main-golden', will be available in build *201204030400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jaroslav Bachorik <email@example.com>
Log: #205333: Enclosing path to profiler binaries in double quotes in case it contains space