Add performance tracing for API calls (inside api proxies).
No-Try: true
Bug: webrtc:12787
Change-Id: Ica2a997077cc76bb24a4c70e5475e491fe44f29e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/219692
Commit-Queue: Tommi <tommi@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34077}
diff --git a/api/proxy.cc b/api/proxy.cc
index 67318e7..a7653ce 100644
--- a/api/proxy.cc
+++ b/api/proxy.cc
@@ -10,3 +10,12 @@
#include "api/proxy.h"
+#include "rtc_base/trace_event.h"
+
+namespace webrtc {
+namespace proxy_internal {
+void TraceApiCall(const char* class_name, const char* method_name) {
+ TRACE_EVENT1("webrtc", class_name, "method", method_name);
+}
+} // namespace proxy_internal
+} // namespace webrtc