Skip to content

Commit

Permalink
Bug 1047523 - Report memory held onto by more Telemetry hash tables. …
Browse files Browse the repository at this point in the history
…r=froydnj
  • Loading branch information
amccreight committed Aug 6, 2014
1 parent 62416a2 commit 196926d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions toolkit/components/telemetry/Telemetry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2611,15 +2611,16 @@ size_t
TelemetryImpl::SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf)
{
size_t n = aMallocSizeOf(this);

// Ignore the hashtables in mAddonMap; they are not significant.
n += mAddonMap.SizeOfExcludingThis(nullptr, aMallocSizeOf);
n += mHistogramMap.SizeOfExcludingThis(nullptr, aMallocSizeOf);
{ // Scope for mHashMutex lock
MutexAutoLock lock(mHashMutex);
n += mPrivateSQL.SizeOfExcludingThis(nullptr, aMallocSizeOf);
n += mSanitizedSQL.SizeOfExcludingThis(nullptr, aMallocSizeOf);
n += mPrivateSQL.SizeOfExcludingThis(aMallocSizeOf);
n += mSanitizedSQL.SizeOfExcludingThis(aMallocSizeOf);
}
n += mTrackedDBs.SizeOfExcludingThis(nullptr, aMallocSizeOf);
n += mTrackedDBs.SizeOfExcludingThis(aMallocSizeOf);
{ // Scope for mHangReportsMutex lock
MutexAutoLock lock(mHangReportsMutex);
n += mHangReports.SizeOfExcludingThis();
Expand Down

0 comments on commit 196926d

Please sign in to comment.