Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » MAT Histogram Objects count is not equal Android Studio Profiler(MAT Histogram Objects count is not equal Android Studio Profiler)
MAT Histogram Objects count is not equal Android Studio Profiler [message #1857018] Fri, 13 January 2023 02:29 Go to next message
Leo Wang is currently offline Leo WangFriend
Messages: 1
Registered: January 2023
Junior Member
I use Android Studio Profiler dump heap
the use hprof-conv to convert the heap file into a standard format
$ANDROID_HOME/platform-tools/hprof-conv memory-20230112T162214.hprof memory-20230112T162214.conv.hprof

but the MAT Histogram Objects count is not equal Android Studio Profiler
for example
In Android Studio Profiler
byte[] count is 106251=82773+24578+5564

MAT Histogram display byte[] count 106251

Eclipse Memory Analyzer Version 1.13.0
index.php/fa/42835/0/
index.php/fa/42836/0/
index.php/fa/42837/0/

[Updated on: Tue, 17 January 2023 06:15]

Report message to a moderator

Re: MAT Histogram Objects count is not equal Android Studio Profiler [message #1857162 is a reply to message #1857018] Fri, 20 January 2023 11:07 Go to previous messageGo to next message
Andrew Johnson is currently offline Andrew JohnsonFriend
Messages: 205
Registered: July 2009
Senior Member
So from
Quote:

In Android Studio Profiler
byte[] count is 106251=82773+24578+5564

MAT Histogram display byte[] count 106251

the counts seem the same, but the count in Android Studio Profiler memory-20230112T162214.conv.hprof is 112015.

One guess could be that the extra objects are unreachable and have been discarded by MAT. Check in the unreachable objects histogram.
Perhaps with the original file memory-20230112T162214.hprof in Android Studio Profiler those objects are shown in another heap, hence the match in size of 106251, but once converted all the objects are just put in one heap.
Re: MAT Histogram Objects count is not equal Android Studio Profiler [message #1858543 is a reply to message #1857162] Thu, 06 April 2023 15:14 Go to previous message
Dtuto Hai is currently offline Dtuto HaiFriend
Messages: 1
Registered: April 2023
Junior Member
the counts seem the same, but the count in android studio Profiler memory-20230112T162214.conv.hprof is 112015.
Previous Topic:Errors deploying plugin
Next Topic:How to serialize ISnapshot object
Goto Forum:
  


Current Time: Wed Feb 05 07:39:47 GMT 2025

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

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

Back to the top