2016-02-03 01:51:18 -08:00
|
|
|
/*
|
|
|
|
|
* Copyright 2016 The WebRTC Project Authors. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Use of this source code is governed by a BSD-style license
|
|
|
|
|
* that can be found in the LICENSE file in the root of the source
|
|
|
|
|
* tree. An additional intellectual property rights grant can be found
|
|
|
|
|
* in the file PATENTS. All contributing project authors may
|
|
|
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-08-30 09:30:29 +02:00
|
|
|
#import "RTCTracing.h"
|
2016-02-03 01:51:18 -08:00
|
|
|
|
2017-09-15 06:47:31 +02:00
|
|
|
#include "rtc_base/event_tracer.h"
|
2016-02-03 01:51:18 -08:00
|
|
|
|
2018-02-01 13:33:18 +01:00
|
|
|
void RTCSetupInternalTracer(void) {
|
2016-02-03 01:51:18 -08:00
|
|
|
rtc::tracing::SetupInternalTracer();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BOOL RTCStartInternalCapture(NSString *filePath) {
|
|
|
|
|
return rtc::tracing::StartInternalCapture(filePath.UTF8String);
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-01 13:33:18 +01:00
|
|
|
void RTCStopInternalCapture(void) {
|
2016-02-03 01:51:18 -08:00
|
|
|
rtc::tracing::StopInternalCapture();
|
|
|
|
|
}
|
|
|
|
|
|
2018-02-01 13:33:18 +01:00
|
|
|
void RTCShutdownInternalTracer(void) {
|
2016-02-03 01:51:18 -08:00
|
|
|
rtc::tracing::ShutdownInternalTracer();
|
|
|
|
|
}
|