blob: 5f4e0b88321d7c834bf06bc75eef36fdcf3a55dc [file] [log] [blame]
Guido Urdanetaccab06f2020-01-15 11:30:291/*
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 Handella1b82012021-05-26 16:56:3011#include "pc/proxy.h"
Guido Urdanetaccab06f2020-01-15 11:30:2912
Tommi1cb796f2021-05-21 06:50:0913#include "rtc_base/trace_event.h"
14
15namespace webrtc {
16namespace proxy_internal {
Markus Handell3d46d0b2021-05-27 19:42:5717ScopedTrace::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}
21ScopedTrace::~ScopedTrace() {
22 TRACE_EVENT_END0("webrtc", class_and_method_name_);
Tommi1cb796f2021-05-21 06:50:0923}
24} // namespace proxy_internal
25} // namespace webrtc