This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Automatic calibration does not work for Maven project | ||
---|---|---|---|
Product: | profiler | Reporter: | _ gtzabari <gtzabari> |
Component: | Ide | Assignee: | Tomas Hurka <thurka> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
_ gtzabari
2015-03-05 16:10:50 UTC
The profiler is being reimplemented for the next NB release. Calibration is now available in Tools | Options | Java | Profiler - Manage calibration data. For Profile action the JDK is calibrated automatically when needed. For Attach actions the calibration cannot be performed automatically as the profiled application is already running in its JVM which would bias the calibration data. Jiri, Reopening because I still have some outstanding issues: 1. I hit ALT+F2 in dev build 201503050001 then click "Profile" and I get a warning dialog that reads: "Calibration data missing.\n\nProfiling cannot be started on this JDK. Please perform profiler calibration first and start profiling again." The dialog contains two buttons: "Show Details" and "OK". Didn't you say that Netbeans was supposed to run calibration automatically? Or hasn't this been implemented yet? 2. If I click Show Details, the warning dialog tells me to run "Manage Calibration Data" but doesn't tell me where to find it. I tried searching using CTRL+I but the documentation is outdated (still pointing to the old location). I suggest updating the "Show Details" message to explain exactly where to find "Manage Calibration Data". Or even better, take the user directly to this dialog (open it on his/her behalf). You're right with 2., I've missed the point. The dialog should be improved - filed Bug 250945. Trying to reproduce 1., so far works fine on my side. Which project type do you profile? Does profiling work correctly after you invoke the calibration manually? Yes, profiling works after I calibrate manually. The project type is Maven -> Java Application. That's the key information - the calibration doesn't execute automatically when starting a Maven/Java Application. Works fine for other project types. The workaround until fixed is to execute the calibration manually using Tools | Options | Java | Profiler | Manage calibration data. Thanks for the bugreport! Excellent. Glad I could help! :) Fixed in profiler-main changeset: 288340:71de40c6c9ce user: Tomas Hurka <thurka@netbeans.org> date: Wed Jun 17 09:39:35 2015 +0200 summary: bugfix #250936, enable automatic calibration for Maven Integrated into 'main-silver', will be available in build *201506260309* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/71de40c6c9ce User: Tomas Hurka <thurka@netbeans.org> Log: bugfix #250936, enable automatic calibration for Maven |