+ +
2da5fe7 OpenAVX v0.2.0 - High-performance open-standard IP audio and video transport suite
saifmukhtar · 2026-11-24
c · 94 lines · 2.7 KB · SPDX: MIT
main
1 /* Simple Plugin API */
2 /* SPDX-FileCopyrightText: Copyright © 2020 Wim Taymans */
3 /* SPDX-License-Identifier: MIT */
4  
5 #ifndef SPA_PARAM_PROFILER_H
6 #define SPA_PARAM_PROFILER_H
7  
8 #include <spa/param/param.h>
9  
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13  
14 /**
15 * \addtogroup spa_param
16 * \{
17 */
18  
19 /** properties for SPA_TYPE_OBJECT_Profiler */
20 enum spa_profiler {
21 SPA_PROFILER_START,
22  
23 SPA_PROFILER_START_Driver = 0x10000, /**< driver related profiler properties */
24 SPA_PROFILER_info, /**< Generic info, counter and CPU load,
25 * (Struct(
26 * Long : counter,
27 * Float : cpu_load fast,
28 * Float : cpu_load medium,
29 * Float : cpu_load slow),
30 * Int : xrun-count)) */
31 SPA_PROFILER_clock, /**< clock information
32 * (Struct(
33 * Int : clock flags,
34 * Int : clock id,
35 * String: clock name,
36 * Long : clock nsec,
37 * Fraction : clock rate,
38 * Long : clock position,
39 * Long : clock duration,
40 * Long : clock delay,
41 * Double : clock rate_diff,
42 * Long : clock next_nsec,
43 * Int : transport_state,
44 * Int : clock cycle,
45 * Long : xrun duration)) */
46 SPA_PROFILER_driverBlock, /**< generic driver info block
47 * (Struct(
48 * Int : driver_id,
49 * String : name,
50 * Long : driver prev_signal,
51 * Long : driver signal,
52 * Long : driver awake,
53 * Long : driver finish,
54 * Int : driver status,
55 * Fraction : latency,
56 * Int : xrun_count)) */
57  
58 SPA_PROFILER_START_Follower = 0x20000, /**< follower related profiler properties */
59 SPA_PROFILER_followerBlock, /**< generic follower info block
60 * (Struct(
61 * Int : id,
62 * String : name,
63 * Long : prev_signal,
64 * Long : signal,
65 * Long : awake,
66 * Long : finish,
67 * Int : status,
68 * Fraction : latency,
69 * Int : xrun_count))
70 * Bool : async)) */
71 SPA_PROFILER_followerClock, /**< follower clock information
72 * (Struct(
73 * Int : clock id,
74 * String: clock name,
75 * Long : clock nsec,
76 * Fraction : clock rate,
77 * Long : clock position,
78 * Long : clock duration,
79 * Long : clock delay,
80 * Double : clock rate_diff,
81 * Long : clock next_nsec,
82 * Long : xrun duration)) */
83 SPA_PROFILER_START_CUSTOM = 0x1000000,
84 };
85  
86 /**
87 * \}
88 */
89  
90 #ifdef __cplusplus
91 } /* extern "C" */
92 #endif
93  
94 #endif /* SPA_PARAM_PROFILER_H */