|
@@ -1678,9 +1678,10 @@ void CRuntimeStatisticCollection::merge(const CRuntimeStatisticCollection & othe
|
|
|
if (value)
|
|
|
mergeStatistic(kind, value);
|
|
|
}
|
|
|
- if (other.nested)
|
|
|
+ CNestedRuntimeStatisticMap *otherNested = other.queryNested();
|
|
|
+ if (otherNested)
|
|
|
{
|
|
|
- ensureNested().merge(*other.nested);
|
|
|
+ ensureNested().merge(*otherNested);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1705,9 +1706,10 @@ void CRuntimeStatisticCollection::updateDelta(CRuntimeStatisticCollection & targ
|
|
|
target.mergeStatistic(kind, sourceValue);
|
|
|
}
|
|
|
}
|
|
|
- if (source.nested)
|
|
|
+ CNestedRuntimeStatisticMap *sourceNested = source.queryNested();
|
|
|
+ if (sourceNested)
|
|
|
{
|
|
|
- ensureNested().updateDelta(target.ensureNested(), *source.nested);
|
|
|
+ ensureNested().updateDelta(target.ensureNested(), *sourceNested);
|
|
|
}
|
|
|
}
|
|
|
|