diff options
| author | Richard Linden <none@none> | 2013-10-03 19:04:51 -0700 |
|---|---|---|
| committer | Richard Linden <none@none> | 2013-10-03 19:04:51 -0700 |
| commit | f8a85003ddd4bee1ae00fc329c1c1d66d6100cbd (patch) | |
| tree | 2e375eabfc5dcba0155a8201e3a356dd4a18580e /indra/llcommon/lltrace.h | |
| parent | 1821fa12838974c4eb7de2b6e9f79bf8a4cf23f1 (diff) | |
more memory optimizations of lltrace
Diffstat (limited to 'indra/llcommon/lltrace.h')
| -rw-r--r-- | indra/llcommon/lltrace.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llcommon/lltrace.h b/indra/llcommon/lltrace.h index 421ec3bda5..3dc2e5248f 100644 --- a/indra/llcommon/lltrace.h +++ b/indra/llcommon/lltrace.h @@ -326,7 +326,7 @@ inline void claim_alloc(MemStatHandle& measurement, const T& value) if(size == 0) return; MemStatAccumulator& accumulator = measurement.getCurrentAccumulator(); accumulator.mSize.sample(accumulator.mSize.hasValue() ? accumulator.mSize.getLastValue() + (F64)size : (F64)size); - accumulator.mFootprintAllocations.record(size); + accumulator.mAllocations.record(size); } template<typename T> @@ -336,7 +336,7 @@ inline void disclaim_alloc(MemStatHandle& measurement, const T& value) if(size == 0) return; MemStatAccumulator& accumulator = measurement.getCurrentAccumulator(); accumulator.mSize.sample(accumulator.mSize.hasValue() ? accumulator.mSize.getLastValue() - (F64)size : -(F64)size); - accumulator.mFootprintDeallocations.add(size); + accumulator.mDeallocations.add(size); } template<typename DERIVED, size_t ALIGNMENT = LL_DEFAULT_HEAP_ALIGN> |
