Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » Get GC Root of Object Efficiently in MAT OQL
Get GC Root of Object Efficiently in MAT OQL [message #1872557] Thu, 07 November 2024 01:57
Avis Lind is currently offline Avis LindFriend
Messages: 2
Registered: October 2024
Junior Member
I need to retrieve the garbage collection (GC) root of an object using MAT (Memory Analyzer Tool) OQL (Object Query Language), but I haven't found any built-in functions or methods to do this efficiently.

Currently, I can access the GC roots of an object by querying all GC roots with ${snapshot}.@GCRoots and then examining their retained sets using SELECT AS RETAINED SET. However, this approach is quite slow and cumbersome, especially when dealing with large datasets.

I'm looking for a more efficient way to directly obtain the GC root of a specific object without having to iterate through all GC roots and their retained sets. Any suggestions or insights on optimizing this process would be greatly appreciated. Thank you in advance for your help!

[Updated on: Thu, 07 November 2024 02:01]

Report message to a moderator

Previous Topic:How to calculate the deep object size in MAT?
Goto Forum:
  


Current Time: Mon Jan 13 08:14:57 GMT 2025

Powered by FUDForum. Page generated in 0.04077 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top