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 120038 - [60cat] CPU profiling does not work after attach
Summary: [60cat] CPU profiling does not work after attach
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P2 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-25 14:33 UTC by tboerkel
Modified: 2007-10-29 12:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log (110.40 KB, text/plain)
2007-10-25 14:34 UTC, tboerkel
Details
Step1 (3.47 KB, image/png)
2007-10-25 14:45 UTC, tboerkel
Details
Step2 (7.51 KB, image/png)
2007-10-25 14:45 UTC, tboerkel
Details
Snapshot at the end (17.75 KB, image/png)
2007-10-25 14:46 UTC, tboerkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tboerkel 2007-10-25 14:33:10 UTC
[ BUILD # : 200710212201 ]
[ JDK VERSION : 1.6.0_03 ]

I am attaching to a running application (started with -Xshare:off to
prevent crash) with local dynamic attach. I have made a new Custom
Configuration with "Profile threads started after entering any of
root methods" on. After attaching, I instruct the application to
start more threads (I can see these new threads in the thread
monitor). But I don't get any Live Results and I can't take a
Snapshot.
Attaching log.

If I start the application within NetBeans with the Profiler, CPU
profiling works.
Comment 1 tboerkel 2007-10-25 14:34:04 UTC
Created attachment 51680 [details]
log
Comment 2 tboerkel 2007-10-25 14:44:29 UTC
I am attaching 3 images:
Step1.png: Thread view directly after attach
Step2.png: More threads running, but cannot take snapshot or see live results
End.png: After stopping the application, Profiler offers a snapshot. This is it.
Comment 3 tboerkel 2007-10-25 14:45:10 UTC
Created attachment 51684 [details]
Step1
Comment 4 tboerkel 2007-10-25 14:45:34 UTC
Created attachment 51685 [details]
Step2
Comment 5 tboerkel 2007-10-25 14:46:02 UTC
Created attachment 51686 [details]
Snapshot at the end
Comment 6 J Bachorik 2007-10-29 12:56:14 UTC
fixed in trunk

Checking in RecursiveMethodInstrumentor3.java;
/cvs/profiler/libs/jfluid/src/org/netbeans/lib/profiler/instrumentation/RecursiveMethodInstrumentor3.java,v  <-- 
RecursiveMethodInstrumentor3.java
new revision: 1.4; previous revision: 1.3
done

see also issue #119043