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

@ -199,8 +199,8 @@ static void context_do_profile(void *data)
SPA_POD_Long(pos->clock.duration),
SPA_POD_Long(pos->clock.delay),
SPA_POD_Double(pos->clock.rate_diff),
SPA_POD_Long(pos->clock.next_nsec));
SPA_POD_Long(pos->clock.next_nsec),
SPA_POD_Int(pos->state));
spa_pod_builder_prop(&b, SPA_PROFILER_driverBlock, 0);
spa_pod_builder_add_struct(&b,