cubeb_tracing.h (743B)
1 /* 2 * Copyright © 2022 Mozilla Foundation 3 * 4 * This program is made available under an ISC-style license. See the 5 * accompanying file LICENSE for details. 6 */ 7 8 #ifndef CUBEB_TRACING_H 9 #define CUBEB_TRACING_H 10 11 /* Empty header to allow hooking up a frame profiler. */ 12 13 // To be called once on a thread to register for tracing. 14 #define CUBEB_REGISTER_THREAD(name) 15 // To be called once before a registered threads exits. 16 #define CUBEB_UNREGISTER_THREAD() 17 // Insert a tracing marker, with a particular name. 18 // Phase can be 'x': instant marker, start time but no duration 19 // 'b': beginning of a marker with a duration 20 // 'e': end of a marker with a duration 21 #define CUBEB_TRACE(name, phase) 22 23 #endif // CUBEB_TRACING_H