fracpete / sizeofag

Determining size of Java objects.
GNU Lesser General Public License v3.0
20 stars 6 forks source link

Memory measure print result is different from printed on the Gui #2

Open asm123955 opened 2 years ago

asm123955 commented 2 years ago

Hello Please can you help with this issue the output result memory measure from print output code is different from GUI display memory display with errors

fracpete commented 2 years ago

You need to check the code used for calculating the size in MOA's user interface and compare it to your own.

asm123955 commented 2 years ago

from which class moa calculate memory size I search on it but not able to find

fracpete commented 2 years ago

Method measureByteSize() defined in class moa.AbstractMOAObject is used to report the model serialized size (bytes) measurement in the table. However, sub-classes may override that implementation. I'm not familiar enough with the MOA code base to determine what values the Memory plot is using.

asm123955 commented 2 years ago

Many thanks for your reply. yes I find the class but iam try but do not know what to do they get the same values on the GUI to be the same to the print output