public Instance getDefiningInstance() { return new ObjectArrayDump(dumpClass, instanceArrayOffset); }
static Properties getProperties(Instance propertiesInstance) { ObjectArrayDump entriesObj = (ObjectArrayDump) propertiesInstance.getValueOfField("table"); // NOI18N if (entriesObj != null) { Instance defaultsObj = (Instance) propertiesInstance.getValueOfField("defaults"); // NOI18N Iterator<Instance> enIt = entriesObj.getValues().iterator(); Properties props; if (defaultsObj != null) { props = new Properties(getProperties(defaultsObj)); } else { props = new Properties(); } while (enIt.hasNext()) { Instance entry = (Instance) enIt.next(); for (; entry != null; entry = (Instance) entry.getValueOfField("next")) { // NOI18N Instance key = (Instance) entry.getValueOfField("key"); // NOI18N Instance val = (Instance) entry.getValueOfField("value"); // NOI18N if (key != null) { props.setProperty(getString(key), getString(val)); } } } return props; } return null; }
public long getSize() { int idSize = dumpClass.getHprofBuffer().getIDSize(); return dumpClass.classDumpSegment.getMinimumInstanceSize() + HPROF_ARRAY_OVERHEAD + ((long)idSize * getLength()); }
public long getSize() { int idSize = dumpClass.getHprofBuffer().getIDSize(); return dumpClass.classDumpSegment.getMinimumInstanceSize() + HPROF_ARRAY_OVERHEAD + ((long)idSize * getLength()); }
return new InstanceDump(classDump, start); } else if (tag == OBJECT_ARRAY_DUMP) { return new ObjectArrayDump(classDump, start); } else if (tag == CLASS_DUMP) { return new ClassDumpInstance(classDump);
public long getSize() { int idSize = dumpClass.getHprofBuffer().getIDSize(); return dumpClass.classDumpSegment.getMinimumInstanceSize() + HPROF_ARRAY_OVERHEAD + ((long)idSize * getLength()); }
static Properties getProperties(Instance propertiesInstance) { ObjectArrayDump entriesObj = (ObjectArrayDump) propertiesInstance.getValueOfField("table"); // NOI18N if (entriesObj != null) { Instance defaultsObj = (Instance) propertiesInstance.getValueOfField("defaults"); // NOI18N Iterator<Instance> enIt = entriesObj.getValues().iterator(); Properties props; if (defaultsObj != null) { props = new Properties(getProperties(defaultsObj)); } else { props = new Properties(); } while (enIt.hasNext()) { Instance entry = (Instance) enIt.next(); for (; entry != null; entry = (Instance) entry.getValueOfField("next")) { // NOI18N Instance key = (Instance) entry.getValueOfField("key"); // NOI18N Instance val = (Instance) entry.getValueOfField("value"); // NOI18N if (key != null) { props.setProperty(getString(key), getString(val)); } } } return props; } return null; }
instance = new InstanceDump(jc, start); } else if (tag == HprofHeap.OBJECT_ARRAY_DUMP) { instance = new ObjectArrayDump(jc, start); } else if (tag == HprofHeap.PRIMITIVE_ARRAY_DUMP) { instance = new PrimitiveArrayDump(jc, start);
static Properties getProperties(Instance propertiesInstance) { ObjectArrayDump entriesObj = (ObjectArrayDump) propertiesInstance.getValueOfField("table"); // NOI18N if (entriesObj != null) { Instance defaultsObj = (Instance) propertiesInstance.getValueOfField("defaults"); // NOI18N Iterator enIt = entriesObj.getValues().iterator(); Properties props; if (defaultsObj != null) { props = new Properties(getProperties(defaultsObj)); } else { props = new Properties(); } while (enIt.hasNext()) { Instance entry = (Instance) enIt.next(); for (; entry != null; entry = (Instance) entry.getValueOfField("next")) { // NOI18N Instance key = (Instance) entry.getValueOfField("key"); // NOI18N Instance val = (Instance) entry.getValueOfField("value"); // NOI18N if (key != null) { props.setProperty(getString(key), getString(val)); } } } return props; } return null; }
return new InstanceDump(classDump, start); } else if (tag == OBJECT_ARRAY_DUMP) { return new ObjectArrayDump(classDump, start); } else if (tag == CLASS_DUMP) { return new ClassDumpInstance(classDump);
public Instance getDefiningInstance() { return new ObjectArrayDump(dumpClass, instanceArrayOffset); }
public Instance getDefiningInstance() { return new ObjectArrayDump(dumpClass, instanceArrayOffset); }
instance = new InstanceDump(this, start); } else if (tag == HprofHeap.OBJECT_ARRAY_DUMP) { instance = new ObjectArrayDump(this, start); } else if (tag == HprofHeap.PRIMITIVE_ARRAY_DUMP) { instance = new PrimitiveArrayDump(this, start);