summaryrefslogtreecommitdiff
path: root/indra/llcommon/lltraceaccumulators.cpp
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-10-03 19:04:51 -0700
committerRichard Linden <none@none>2013-10-03 19:04:51 -0700
commitf8a85003ddd4bee1ae00fc329c1c1d66d6100cbd (patch)
tree2e375eabfc5dcba0155a8201e3a356dd4a18580e /indra/llcommon/lltraceaccumulators.cpp
parent1821fa12838974c4eb7de2b6e9f79bf8a4cf23f1 (diff)
more memory optimizations of lltrace
Diffstat (limited to 'indra/llcommon/lltraceaccumulators.cpp')
-rw-r--r--indra/llcommon/lltraceaccumulators.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llcommon/lltraceaccumulators.cpp b/indra/llcommon/lltraceaccumulators.cpp
index 6381281a56..c25bb704f5 100644
--- a/indra/llcommon/lltraceaccumulators.cpp
+++ b/indra/llcommon/lltraceaccumulators.cpp
@@ -48,7 +48,12 @@ AccumulatorBufferGroup::AccumulatorBufferGroup()
claim_alloc(gTraceMemStat, mMemStats.capacity() * sizeof(MemStatAccumulator));
}
-AccumulatorBufferGroup::AccumulatorBufferGroup(const AccumulatorBufferGroup&)
+AccumulatorBufferGroup::AccumulatorBufferGroup(const AccumulatorBufferGroup& other)
+: mCounts(other.mCounts),
+ mSamples(other.mSamples),
+ mEvents(other.mEvents),
+ mStackTimers(other.mStackTimers),
+ mMemStats(other.mMemStats)
{
claim_alloc(gTraceMemStat, mCounts.capacity() * sizeof(CountAccumulator));
claim_alloc(gTraceMemStat, mSamples.capacity() * sizeof(SampleAccumulator));