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 219702 - Root methods not hit when re-attached the profiler
Summary: Root methods not hit when re-attached the profiler
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-10-08 12:24 UTC by Jiri Sedlacek
Modified: 2012-10-12 02:04 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 Jiri Sedlacek 2012-10-08 12:24:04 UTC
Product Version: NetBeans IDE Dev (Build 20121008-9d5d0e5dabae)
Java: 1.6.0_35; Java HotSpot(TM) 64-Bit Server VM 20.10-b01
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

Steps:
 1/ Started AnagramGame using the Run action
 2/ Dynamically attached for CPU Advanced profiling, default settings
 3/ Displayed Live Results, clicked Guess button, data collected
 4/ Detached, attached again using the same settings
 5/ Clicked Guess button, no data, clicked New Word button, data collected
 6/ Detached, attached again using the same settings
 7/ Clicked Guess & New Word button, no data, clicked File menu, data collected

Looks like once a root method is hit, it won't be hit for the second time in a subsequent attach profiler session.
Comment 1 Jiri Sedlacek 2012-10-10 12:53:16 UTC
Also affects instrumented memory profiling, no data are collected after re-attaching to an application.

Regression, worked fine in 7.2.
Comment 2 Tomas Hurka 2012-10-10 14:51:53 UTC
This is regression caused by 8da1a3e6b5da.
Comment 3 Tomas Hurka 2012-10-10 15:00:41 UTC
Fixed in profiler-main

changeset:   235492:0648904ba7b1
user:        Tomas Hurka <thurka@netbeans.org>
date:        Wed Oct 10 16:57:26 2012 +0200
summary:     bugfix #219702, do not rely on class initialization - initialize detachStarted explicitly
Comment 4 Quality Engineering 2012-10-12 02:04:46 UTC
Integrated into 'main-golden', will be available in build *201210120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/0648904ba7b1
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #219702, do not rely on class initialization - initialize detachStarted explicitly