profiler: Improve profiler info

Split the profiler info into multiple properties.
Give feedback about time and logged samples while profiling.
This commit is contained in:
Wim Taymans 2020-02-03 12:33:01 +01:00
parent bdad7d87f9
commit a4a93a2a16
4 changed files with 71 additions and 25 deletions

View file

@ -36,6 +36,8 @@ enum spa_profiler {
SPA_PROFILER_START,
SPA_PROFILER_START_Driver = 0x10000, /**< driver related profiler properties */
SPA_PROFILER_info, /**< Generic info, counter and CPU load */
SPA_PROFILER_clock, /**< clock information */
SPA_PROFILER_driverBlock, /**< generic driver info block */
SPA_PROFILER_START_Follower = 0x20000, /**< follower related profiler properties */

View file

@ -329,6 +329,8 @@ static const struct spa_type_info spa_type_param_route[] = {
static const struct spa_type_info spa_type_profiler[] = {
{ SPA_PROFILER_START, SPA_TYPE_Id, SPA_TYPE_INFO_PROFILER_BASE, spa_type_param, },
{ SPA_PROFILER_info, SPA_TYPE_Struct, SPA_TYPE_INFO_PROFILER_BASE "info", NULL, },
{ SPA_PROFILER_clock, SPA_TYPE_Struct, SPA_TYPE_INFO_PROFILER_BASE "clock", NULL, },
{ SPA_PROFILER_driverBlock, SPA_TYPE_Struct, SPA_TYPE_INFO_PROFILER_BASE "driverBlock", NULL, },
{ SPA_PROFILER_followerBlock, SPA_TYPE_Struct, SPA_TYPE_INFO_PROFILER_BASE "followerBlock", NULL, },
{ 0, 0, NULL, NULL },