Skip to content

ui: rich support for embedding Perfetto UI in other applications #2266

@cdamus

Description

@cdamus

Perfetto UI currently supports an embedded mode via a URL parameter. This suppresses the sidebar and other default behaviours of the UI. However, I am building an application whose integration needs go deeper than this. In particular, I need to be able to

  • adjust the way routing works because my application uses the URL hash already for its own purposes
  • I need to tweak the content security policy
  • I need to customize the keys used by CacheManager for caching in the browser, to separate the caches from my application and satisfy other restrictions
  • allow file CORS origins
  • my application loads up traces into the trace processor before initializing the Perfetto UI, so I need to suppress the dialog that prompts to open a trace already loaded
  • handle uncaught errors and promise rejections in my application
  • and possibly more

So some kind of API by which I can inject customizations of these Perfetto UI behaviours, before initializing the UI app, would be most helpful to my application.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions