void HeapVerifier::checkIfRecorded(JSObject* obj) { bool found = false; for (int cycleIndex = 0; cycleIndex > -m_numberOfCycles; cycleIndex--) { GCCycle& cycle = cycleForIndex(cycleIndex); LiveObjectList& beforeList = cycle.before; LiveObjectList& afterList = cycle.after; LiveObjectData* objData; objData = beforeList.findObject(obj); if (objData) { reportObject(*objData, cycleIndex, cycle, beforeList); found = true; } objData = afterList.findObject(obj); if (objData) { reportObject(*objData, cycleIndex, cycle, afterList); found = true; } } if (!found) dataLogF("obj %p NOT FOUND\n", obj); }
ChartDataCollector::ChartDataCollector(QGraphicsItem* parentItem, QObject* parentObject) : Report::ItemInterface(parentItem, parentObject),m_chartDataSource(FromDatabase),m_showOnlyFirstValues(-1), m_sortDirection(Unsorted),m_colorOpacity(100) { m_otherValue.value=0; m_otherValue.key=tr("Other"); if (reportObject()) connect(reportObject(),SIGNAL(beforeExec()),SLOT(setupConnections())); }