Remove MetricsObserverInterface.
The usage of MetricsObserverInterface to log metrics has been replaced by RTC_HISTOGRAM_* macros in WebRTC. Bug: webrtc:9409 Change-Id: I67df74a18942ac7ea4227e4affdf84f06258a287 Reviewed-on: https://webrtc-review.googlesource.com/86780 Commit-Queue: Qingsi Wang <qingsi@google.com> Reviewed-by: Steve Anton <steveanton@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Qingsi Wang <qingsi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24048}
This commit is contained in:
@ -17,38 +17,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
// Used to specify which enum counter type we're incrementing in
|
||||
// MetricsObserverInterface::IncrementEnumCounter.
|
||||
enum PeerConnectionEnumCounterType {
|
||||
kEnumCounterAddressFamily,
|
||||
// For the next 2 counters, we track them separately based on the "first hop"
|
||||
// protocol used by the local candidate. "First hop" means the local candidate
|
||||
// type in the case of non-TURN candidates, and the protocol used to connect
|
||||
// to the TURN server in the case of TURN candidates.
|
||||
kEnumCounterIceCandidatePairTypeUdp,
|
||||
kEnumCounterIceCandidatePairTypeTcp,
|
||||
|
||||
kEnumCounterAudioSrtpCipher,
|
||||
kEnumCounterAudioSslCipher,
|
||||
kEnumCounterVideoSrtpCipher,
|
||||
kEnumCounterVideoSslCipher,
|
||||
kEnumCounterDataSrtpCipher,
|
||||
kEnumCounterDataSslCipher,
|
||||
kEnumCounterDtlsHandshakeError,
|
||||
kEnumCounterIceRegathering,
|
||||
kEnumCounterIceRestart,
|
||||
kEnumCounterKeyProtocol,
|
||||
kEnumCounterSdpSemanticRequested,
|
||||
kEnumCounterSdpSemanticNegotiated,
|
||||
kEnumCounterKeyProtocolMediaType,
|
||||
kEnumCounterSdpFormatReceived,
|
||||
// The next 2 counters log the value of srtp_err_status_t defined in libsrtp.
|
||||
kEnumCounterSrtpUnprotectError,
|
||||
kEnumCounterSrtcpUnprotectError,
|
||||
kEnumCounterUsagePattern,
|
||||
kPeerConnectionEnumCounterMax
|
||||
};
|
||||
|
||||
// Currently this contains information related to WebRTC network/transport
|
||||
// information.
|
||||
|
||||
@ -182,27 +150,6 @@ enum AddIceCandidateResult {
|
||||
kAddIceCandidateMax
|
||||
};
|
||||
|
||||
class MetricsObserverInterface : public rtc::RefCountInterface {
|
||||
public:
|
||||
// |type| is the type of the enum counter to be incremented. |counter|
|
||||
// is the particular counter in that type. |counter_max| is the next sequence
|
||||
// number after the highest counter.
|
||||
virtual void IncrementEnumCounter(PeerConnectionEnumCounterType type,
|
||||
int counter,
|
||||
int counter_max) = 0;
|
||||
|
||||
// This is used to handle sparse counters like SSL cipher suites.
|
||||
// TODO(guoweis): Remove the implementation once the dependency's interface
|
||||
// definition is updated.
|
||||
virtual void IncrementSparseEnumCounter(PeerConnectionEnumCounterType type,
|
||||
int counter) = 0;
|
||||
|
||||
virtual void AddHistogramSample(PeerConnectionMetricsName type,
|
||||
int value) = 0;
|
||||
};
|
||||
|
||||
typedef MetricsObserverInterface UMAObserver;
|
||||
|
||||
} // namespace webrtc
|
||||
|
||||
#endif // API_UMAMETRICS_H_
|
||||
|
||||
Reference in New Issue
Block a user