michaelveloz
15 years agoNew Contributor
Confused about object size -- always 24?
Hi there
I am a new user to AQTime and I'm trying to test debug a tiny c# application to make sure I understand the results shown from the Allocation Profiler.
I am confused about the size of objects created.
I create an instance of the following object, during certain button click event, and save a reference to this object into a form variable (to make sure it's not garbage collected and that AQTime can see it)
public class Class1 {
Int32[] a = new Int32[25000];
public Class1() {
for (Int32 ix = 0; ix < a.Length; ix++) {
a[ix] = ix;
}
}
}
After clicking the button and doing a "Get Results" in AQTime, I can see the object in both the class view and the object view, but in both cases, the size of the object is reported as 24. I don't understand what this is telling me??
I changed the size of the "a" array to different values and am still seeing "24" as the size..??
Thanks for any info you might provide!
Michael
I am a new user to AQTime and I'm trying to test debug a tiny c# application to make sure I understand the results shown from the Allocation Profiler.
I am confused about the size of objects created.
I create an instance of the following object, during certain button click event, and save a reference to this object into a form variable (to make sure it's not garbage collected and that AQTime can see it)
public class Class1 {
Int32[] a = new Int32[25000];
public Class1() {
for (Int32 ix = 0; ix < a.Length; ix++) {
a[ix] = ix;
}
}
}
After clicking the button and doing a "Get Results" in AQTime, I can see the object in both the class view and the object view, but in both cases, the size of the object is reported as 24. I don't understand what this is telling me??
I changed the size of the "a" array to different values and am still seeing "24" as the size..??
Thanks for any info you might provide!
Michael