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.

Bug 247597 - "Profile Test file" doesn't work with instrumentation
Summary: "Profile Test file" doesn't work with instrumentation
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Ide (show other bugs)
Version: 8.0.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-30 13:37 UTC by lstosik
Modified: 2015-07-25 01:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lstosik 2014-09-30 13:37:32 UTC
After selecting "Profile/Profile Test file" from menu and choosing "Advanced (instrumentation)" with "Profile all classes" Netbeans executes Maven without "-agentpath", for example:

mvn -Dtest=some.package.MyTest -DforkMode=once -Dmaven.surefire.debug=${exec.args} -Dexec.args=  surefire:test

The GUI still tries to connect to profiler agent. That means adding agentpath explicitly to surefire configuration allows "Profile Test file" to work correctly (but hangs every other test execution).
Comment 1 Tomas Hurka 2015-07-02 15:41:57 UTC
Reproduced in recent dev. build.
Comment 2 Tomas Hurka 2015-07-03 13:17:41 UTC
it looks like this is only broken for web/j2ee application. Test profiling works fine for me in javase maven project.
Comment 3 Tomas Hurka 2015-07-23 08:27:47 UTC
Fixed in profiler-main

changeset:   289503:503cba709442
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu Jul 23 10:21:56 2015 +0200
summary:     bugfix #247597, use StartupExtender to add profiler args to commandline while excuting maven/j2ee tests
Comment 4 Quality Engineering 2015-07-25 01:17:03 UTC
Integrated into 'main-silver', will be available in build *201507250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/503cba709442
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #247597, use StartupExtender to add profiler args to commandline while excuting maven/j2ee tests