Skip to content

[BTRACE-54] Object count for instrumented classes #38

@jbachorik

Description

@jbachorik

[reporter="joachimhskeie", created="Sun, 12 Sep 2010 13:25:26 +0200"]

I would like to be able to retreive the object count for instrumented classes. I am not sure if it is possible to automatically store this type of data in the Agent (or it it is a desirable feature of the BTrace Agent).

The reason for wanting this feature is because I need some sort of "mini" jmap -histo:live feature for the instrumented application. If maintaining a list of the instrumented classes and its current object count is both easy to implement and easy on the resources required this could be a nice addition to BTrace.

A BTrace script could retreive the data using the standard StringFormat approach as both Aggregation and Profiler has today, something like

Profiler.printObjectCount(String format)

I will be happy to assist in developing this feature, but I will need some pointers as to where in the code this might be added.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions