Add trace event with qp value to VideoStreamEncoder

Bug: None
Change-Id: I11c88a948b1940cac91ac6132e44107db0c5c46a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/338980
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Johannes Kron <kron@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41734}
diff --git a/video/video_stream_encoder.cc b/video/video_stream_encoder.cc
index 6f398ec..73cd782 100644
--- a/video/video_stream_encoder.cc
+++ b/video/video_stream_encoder.cc
@@ -2105,6 +2105,8 @@
             .Parse(codec_type, stream_idx, image_copy.data(), image_copy.size())
             .value_or(-1);
   }
+  TRACE_EVENT2("webrtc", "VideoStreamEncoder::AugmentEncodedImage",
+               "stream_idx", stream_idx, "qp", image_copy.qp_);
   RTC_LOG(LS_VERBOSE) << __func__ << " ntp time " << encoded_image.NtpTimeMs()
                       << " stream_idx " << stream_idx << " qp "
                       << image_copy.qp_;