Trace declared instance properties of objects

Instance properties were being completely ignored,
so the heap graph was missing a lot of information.
Esse commit está contido em:
Eric Caruso
2013-07-11 13:19:56 -07:00
commit de Sara Golemon
commit fa04bcb180
+7
Ver Arquivo
@@ -318,6 +318,13 @@ class ObjectData : public CountableNF {
void initProperties(int nProp);
void getChildren(std::vector<TypedValue*> &out) {
// statically declared properties
Slot nProps = m_cls->numDeclProperties();
for (Slot i = 0; i < nProps; ++i) {
out.push_back(&propVec()[i]);
}
// dynamic properties
ArrayData* props = o_properties.get();
if (props) {
props->getChildren(out);