Guido Urdaneta | ccab06f | 2020-01-15 11:30:29 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Markus Handell | a1b8201 | 2021-05-26 16:56:30 | [diff] [blame] | 11 | #include "pc/proxy.h" |
Guido Urdaneta | ccab06f | 2020-01-15 11:30:29 | [diff] [blame] | 12 | |
Tommi | 1cb796f | 2021-05-21 06:50:09 | [diff] [blame] | 13 | #include "rtc_base/trace_event.h" |
| 14 | |
| 15 | namespace webrtc { |
| 16 | namespace proxy_internal { |
Markus Handell | 3d46d0b | 2021-05-27 19:42:57 | [diff] [blame] | 17 | ScopedTrace::ScopedTrace(const char* class_and_method_name) |
| 18 | : class_and_method_name_(class_and_method_name) { |
| 19 | TRACE_EVENT_BEGIN0("webrtc", class_and_method_name_); |
| 20 | } |
| 21 | ScopedTrace::~ScopedTrace() { |
| 22 | TRACE_EVENT_END0("webrtc", class_and_method_name_); |
Tommi | 1cb796f | 2021-05-21 06:50:09 | [diff] [blame] | 23 | } |
| 24 | } // namespace proxy_internal |
| 25 | } // namespace webrtc |