mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
node: calculate cpu time
This commit is contained in:
parent
3a43fac0c2
commit
c9e177827b
3 changed files with 32 additions and 6 deletions
|
|
@ -358,9 +358,12 @@ struct pw_node_activation {
|
|||
uint64_t signal_time;
|
||||
uint64_t awake_time;
|
||||
uint64_t finish_time;
|
||||
uint64_t prev_signal_time;
|
||||
|
||||
struct spa_io_position position;
|
||||
struct pw_node_activation_state state[2]; /* one current state and one next state */
|
||||
struct pw_node_activation_state state[2]; /* one current state and one next state,
|
||||
* as low bit of version in position */
|
||||
float cpu_load[3]; /* averaged over short, medium, long time */
|
||||
};
|
||||
|
||||
#define pw_node_emit(o,m,v,...) spa_hook_list_call(&o->listener_list, struct pw_node_events, m, v, ##__VA_ARGS__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue