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 55209 - Loaded classes VM telemetry
Summary: Loaded classes VM telemetry
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-18 17:28 UTC by iformanek
Modified: 2007-02-12 10:54 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iformanek 2005-02-18 17:28:26 UTC
Display statistics and details about classes 
loaded by the target VM (number of classes 
loaded/gcd). Jconsole can do this.
Comment 1 iformanek 2005-03-29 14:58:38 UTC
Misha, can this be done for 1.0 on the engine side (i.e. have loaded classes 
part of MonitoredData)?
Comment 2 mishadmitriev 2005-03-31 04:34:09 UTC
Need to see how this is done in JConsole. As far as I know, there is no API call
such as "GetNumberOfLoadedClasses()" in JVMTI. There is a
"GetAllLoadedClasses()" call, but it's obviously too expensive to be called by
monitoring. Another method is to track every class load and class unload event
(which is probably what OptimizeIt etc. is doing), but that's not much fun. I
suspect JConsole is obtaining this info from the special shared-memory file into
which the VM periodically writes various info including the number of loaded
classes. This will be the best mechanism for us (we can get other statistics
from there as well), but I need to see if we can (easily enough) utilize this stuff.
Comment 3 iformanek 2005-04-14 14:09:04 UTC
Suggest to move beyond 1.0
Comment 4 Tomas Hurka 2007-02-12 10:54:26 UTC
Number of loaded class was added to telemetry view.