[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.memory-analyzer] Re: All ObjectIds of Heap dump

Hi,

Programatically or somehow in the GUI? Programatically you can do this:

You can use the ISnapshot.getSnapshotInfo().getNumberOfObjects() to get the count of objects. The IDs we give to the objetcts start from 0 and are sequential - so you just have to iterate from 0 to "count"

If you want to see the object addresses, you can use the in your iteration.
ISnapshot.mapIdToAddress(int objectId)


Just a note - using the object IDs in your queries will work much faster that using the object addresses.

Hope this helps.

 Krum


M.S.Alavi wrote:

I want to know how I can get all the object IDs of all objects in the snapshot.
any Idea?

Regards,
Mohammad