Skip to content

how best to handle perfetto::Tracing::Initialize arguments #11

@batesj

Description

@batesj

@gerddie raised this issue with the current INIT API that once we support a shared library C API it will not work well, because only the first call to init will get to set the config options.

Design alternatives:

  1. Same as perfetto: passed in parameters to percetto_init.
  2. Config file loaded during percetto_init -- if it is found it is used as defaults.
  3. Build option to specify default values.
  4. Update perfetto to handle dynamic changes to these settings to compromise between different options for different libraries. ie: if mesa wants shmem_size_hint_kb of 400 and virglrenderer wants 200, perfetto could dynamically update it to the greater of the two options -- 400.
  5. A combination of the above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions