profiler: add transport state in the profile block

Add transport state to the profiler clock info and show this in
pw-top as t and T states.

Update the docs some more.
This commit is contained in:
Wim Taymans 2024-02-29 14:07:08 +01:00
parent 94d19f2673
commit ccf899a709
4 changed files with 24 additions and 10 deletions

View file

@ -39,7 +39,8 @@ enum spa_profiler {
* Long : clock duration,
* Long : clock delay,
* Double : clock rate_diff,
* Long : clock next_nsec)) */
* Long : clock next_nsec,
* Int : transport_state)) */
SPA_PROFILER_driverBlock, /**< generic driver info block
* (Struct(
* Int : driver_id,
@ -48,8 +49,9 @@ enum spa_profiler {
* Long : driver signal,
* Long : driver awake,
* Long : driver finish,
* Int : driver status),
* Fraction : latency)) */
* Int : driver status,
* Fraction : latency,
* Int : xrun_count)) */
SPA_PROFILER_START_Follower = 0x20000, /**< follower related profiler properties */
SPA_PROFILER_followerBlock, /**< generic follower info block
@ -61,7 +63,8 @@ enum spa_profiler {
* Long : awake,
* Long : finish,
* Int : status,
* Fraction : latency)) */
* Fraction : latency,
* Int : xrun_count)) */
SPA_PROFILER_START_CUSTOM = 0x1000000,
};