How to include retained size column (with precise or approximate values) in histogram command result [message #1853398] |
Thu, 30 June 2022 12:54 |
R Chinmay Messages: 1 Registered: June 2022 |
Junior Member |
|
|
Hello Eclipse MAT community, I really loved using this tool for heap analysis. But the major problem I am facing is that the histogram command does not include retained size by default (I actually would not care if it took a lot of time, because the hprof file I am testing with is usually small, around 100MB file with small number of objects too). I also tried using the dominator tree (grouped by class) api command, but it only gives the top level class details as a result from query command. Usually for my programs, it tells that the Thread class is taking about 99% of retained heap, but I would not be able to see what classes under Thread is taking more memory, which is possible in UI application of mat. Also calculating retained heap sizes in histogram table is possible in MAT UI application. But I am not able to find how to do it using the api, since I have to write a script which would a part of another program (which would use this result). If either including retained size column in histogram, or expanding dominator_tree command to print deeper levels is not possible using the API presently, could anyone please guide me how to do it using a custom query, or if it is not possible presently?
Thank you in advance.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04637 seconds