Skip to content

Commit 72e8cb5

Browse files
committed
Change positive value for FrameMatchSize to be 1
Changes: * Update readme * Flip the poitive value for FrameMatchSize * Change the unit for FrameMatchSize to be Count
1 parent 5397f75 commit 72e8cb5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

webrtc-c/canary/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ the granular access to these metrics.
5757
| Initialization | SignalingInitDelay | Miliseconds | - | - | Measure the time it takes for Signaling from creation to connected. |
5858
| Initialization | ICEHolePunchingDelay | Miliseconds | - | - | Measure the time it takes for ICE agent to successfully connect to the other peer. |
5959
| End to End | EndToEndFrameLatency | Milliseconds | - | 30 | The delay from sending the frame to when the frame is received on the other end |
60-
| End to End | FrameSizeMatch | None | - | 30 | The decoded canary data (header + frame data) at the receiver end is compared with the received size as part of header). If equal, 0.0 is pushed as a metric, else 1.0 is pushed |
60+
| End to End | FrameSizeMatch | None | - | 30 | The decoded canary data (header + frame data) at the receiver end is compared with the received size as part of header). If equal, 1.0 is pushed as a metric, else 0.0 is pushed |
6161
| Outbound RTP Stats | FramesPerSecond | Count_Second | - | 60 | Measures the rate at which frames are sent out from the master. This is calculated using outboundRtpStats |
6262
| Outbound RTP Stats | PercentageFrameDiscarded | Percent | - | 60 | This expresses the percentage of frames that dropped on the sending path within a given time interval. This is calculated using outboundRtpStats |
6363
| Outbound RTP Stats | PercentageFramesRetransmitted | Percent | - | 60 | This expresses the percentage of frames that are retransmitted on the sending path within a given time interval. This is calculated using outboundRtpStats |

webrtc-c/canary/src/CloudwatchMonitoring.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ VOID CloudwatchMonitoring::pushEndToEndMetrics(Canary::PEndToEndMetricsContext p
245245
this->push(endToEndLatencyDatum);
246246

247247
sizeMatchDatum.SetMetricName("FrameSizeMatch");
248-
sizeMatchDatum.SetUnit(StandardUnit::None);
248+
sizeMatchDatum.SetUnit(StandardUnit::Count);
249249
auto& sizeMatches = pEndToEndMetricsContext->sizeMatch;
250250
auto averageSizeMatch = std::accumulate(sizeMatches.begin(), sizeMatches.end(), 0.0) / sizeMatches.size();
251251
sizeMatchDatum.SetValue(averageSizeMatch);

webrtc-c/canary/src/Peer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ STATUS Peer::addTransceiver(RtcMediaStreamTrack& track)
530530

531531
// Do a size match of the raw packet. Since raw packet does not contain the NALu, the
532532
// comparison would be rawPacketSize + ANNEX_B_NALU_SIZE and the received size
533-
pPeer->endToEndMetricsContext.sizeMatch.push_back((rawPacketSize + ANNEX_B_NALU_SIZE) == receivedSize ? 0.0 : 1.0);
533+
pPeer->endToEndMetricsContext.sizeMatch.push_back((rawPacketSize + ANNEX_B_NALU_SIZE) == receivedSize ? 1.0 : 0.0);
534534
SAFE_MEMFREE(rawPacket);
535535
};
536536

0 commit comments

Comments
 (0)