mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-03 10:33:33 +00:00
Bug 1261063
- Part 1 - Remove public Telemetry functions that return raw histogram instances. r=chutten
Note that GetKeyedHistogramById(ID, const nsAString&) was declared, but never had an implementation.
This commit is contained in:
parent
5beacc7b4b
commit
db7169cb38
@ -3969,14 +3969,6 @@ CanRecordExtended()
|
||||
return TelemetryImpl::CanRecordExtended();
|
||||
}
|
||||
|
||||
base::Histogram*
|
||||
GetHistogramById(ID id)
|
||||
{
|
||||
Histogram *h = nullptr;
|
||||
GetHistogramByEnumId(id, &h);
|
||||
return h;
|
||||
}
|
||||
|
||||
const char*
|
||||
GetHistogramName(Telemetry::ID id)
|
||||
{
|
||||
|
@ -12,10 +12,6 @@
|
||||
#include "nsTArray.h"
|
||||
#include "nsStringGlue.h"
|
||||
|
||||
namespace base {
|
||||
class Histogram;
|
||||
} // namespace base
|
||||
|
||||
namespace mozilla {
|
||||
namespace HangMonitor {
|
||||
class HangAnnotations;
|
||||
@ -93,18 +89,8 @@ void AccumulateTimeDelta(ID id, TimeStamp start, TimeStamp end = TimeStamp::Now(
|
||||
*/
|
||||
void SetHistogramRecordingEnabled(ID id, bool enabled);
|
||||
|
||||
/**
|
||||
* Return a raw Histogram for direct manipulation for users who can not use Accumulate().
|
||||
*/
|
||||
base::Histogram* GetHistogramById(ID id);
|
||||
|
||||
const char* GetHistogramName(ID id);
|
||||
|
||||
/**
|
||||
* Return a raw histogram for keyed histograms.
|
||||
*/
|
||||
base::Histogram* GetKeyedHistogramById(ID id, const nsAString&);
|
||||
|
||||
/**
|
||||
* Those wrappers are needed because the VS versions we use do not support free
|
||||
* functions with default template arguments.
|
||||
|
Loading…
Reference in New Issue
Block a user