[PCLF] Propagate relevant metadata to all metrics
Bug: None Change-Id: Ifcb67a59b68cc3468dd06e932a2a3da7b40d9845 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/281680 Commit-Queue: Artem Titov <titovartem@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38545}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
42e5ed38a7
commit
15b97d6d90
@ -11,6 +11,8 @@
|
||||
#ifndef API_TEST_TRACK_ID_STREAM_INFO_MAP_H_
|
||||
#define API_TEST_TRACK_ID_STREAM_INFO_MAP_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "absl/strings/string_view.h"
|
||||
|
||||
namespace webrtc {
|
||||
@ -20,19 +22,19 @@ namespace webrtc_pc_e2e {
|
||||
// are useful to associate stats reports track_ids to the remote stream info.
|
||||
class TrackIdStreamInfoMap {
|
||||
public:
|
||||
struct StreamInfo {
|
||||
std::string receiver_peer;
|
||||
std::string stream_label;
|
||||
std::string sync_group;
|
||||
};
|
||||
|
||||
virtual ~TrackIdStreamInfoMap() = default;
|
||||
|
||||
// These methods must be called on the same thread where
|
||||
// StatsObserverInterface::OnStatsReports is invoked.
|
||||
|
||||
// Returns a reference to a stream label owned by the TrackIdStreamInfoMap.
|
||||
// Precondition: `track_id` must be already mapped to stream label.
|
||||
virtual absl::string_view GetStreamLabelFromTrackId(
|
||||
absl::string_view track_id) const = 0;
|
||||
|
||||
// Returns a reference to a sync group name owned by the TrackIdStreamInfoMap.
|
||||
// Precondition: `track_id` must be already mapped to sync group.
|
||||
virtual absl::string_view GetSyncGroupLabelFromTrackId(
|
||||
// Precondition: `track_id` must be already mapped to stream info.
|
||||
virtual StreamInfo GetStreamInfoFromTrackId(
|
||||
absl::string_view track_id) const = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user