зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1304735 - Remove ClearHistogram r=chutten
MozReview-Commit-ID: Ez7u2gsRX6R --HG-- extra : rebase_source : efcaba545b853bd6bb1df0ce85cd2b4c4cf33076
This commit is contained in:
Родитель
1983c2ea5d
Коммит
9b6d615f82
|
@ -2841,12 +2841,6 @@ AccumulateChildKeyed(const nsTArray<KeyedAccumulation>& aAccumulations)
|
|||
TelemetryHistogram::AccumulateChildKeyed(aAccumulations);
|
||||
}
|
||||
|
||||
void
|
||||
ClearHistogram(ID aId)
|
||||
{
|
||||
TelemetryHistogram::ClearHistogram(aId);
|
||||
}
|
||||
|
||||
const char*
|
||||
GetHistogramName(ID id)
|
||||
{
|
||||
|
|
|
@ -142,13 +142,6 @@ void AccumulateChild(const nsTArray<Accumulation>& aAccumulations);
|
|||
*/
|
||||
void AccumulateChildKeyed(const nsTArray<KeyedAccumulation>& aAccumulations);
|
||||
|
||||
/**
|
||||
* This clears the data for a histogram in TelemetryHistogramEnums.h.
|
||||
*
|
||||
* @param id - histogram id
|
||||
*/
|
||||
void ClearHistogram(ID id);
|
||||
|
||||
/**
|
||||
* Enable/disable recording for this histogram at runtime.
|
||||
* Recording is enabled by default, unless listed at kRecordingInitiallyDisabledIDs[].
|
||||
|
|
|
@ -2215,21 +2215,6 @@ TelemetryHistogram::AccumulateChildKeyed(const nsTArray<KeyedAccumulation>& aAcc
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
TelemetryHistogram::ClearHistogram(mozilla::Telemetry::ID aId)
|
||||
{
|
||||
StaticMutexAutoLock locker(gTelemetryHistogramMutex);
|
||||
if (!internal_CanRecordBase()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Histogram *h;
|
||||
nsresult rv = internal_GetHistogramByEnumId(aId, &h);
|
||||
if (NS_SUCCEEDED(rv) && h) {
|
||||
internal_HistogramClear(*h, false);
|
||||
}
|
||||
}
|
||||
|
||||
nsresult
|
||||
TelemetryHistogram::GetHistogramById(const nsACString &name, JSContext *cx,
|
||||
JS::MutableHandle<JS::Value> ret)
|
||||
|
|
|
@ -47,9 +47,6 @@ void AccumulateCategorical(mozilla::Telemetry::ID aId, const nsCString& aLabel);
|
|||
void AccumulateChild(const nsTArray<mozilla::Telemetry::Accumulation>& aAccumulations);
|
||||
void AccumulateChildKeyed(const nsTArray<mozilla::Telemetry::KeyedAccumulation>& aAccumulations);
|
||||
|
||||
void
|
||||
ClearHistogram(mozilla::Telemetry::ID aId);
|
||||
|
||||
nsresult
|
||||
GetHistogramById(const nsACString &name, JSContext *cx,
|
||||
JS::MutableHandle<JS::Value> ret);
|
||||
|
|
Загрузка…
Ссылка в новой задаче