Bug 1437689 - Add basic memory reporting for gNameToHistogramIDMap. r=gfritzsche
MozReview-Commit-ID: 8QGudRuXmWh
--- a/toolkit/components/telemetry/TelemetryHistogram.cpp
+++ b/toolkit/components/telemetry/TelemetryHistogram.cpp
@@ -2383,18 +2383,17 @@ TelemetryHistogram::GetKeyedHistogramSna
return NS_OK;
}
size_t
TelemetryHistogram::GetMapShallowSizesOfExcludingThis(mozilla::MallocSizeOf
aMallocSizeOf)
{
StaticMutexAutoLock locker(gTelemetryHistogramMutex);
- // TODO
- return 0;
+ return gNameToHistogramIDMap.ShallowSizeOfExcludingThis(aMallocSizeOf);
}
size_t
TelemetryHistogram::GetHistogramSizesofIncludingThis(mozilla::MallocSizeOf
aMallocSizeOf)
{
StaticMutexAutoLock locker(gTelemetryHistogramMutex);
// TODO