Skip to content

[Impeller] Allow instrumentation of allocations. #120502

@chinmaygarde

Description

@chinmaygarde

We'd like to be able to tell how many allocations and deallocations took place in a given period of time (say a frame workload) and also generate histograms of the allocations along with an estimate of how long each allocation survived. Some requirements:

  • Allow turning off this instrumentation in release modes.
    • Perhaps wrap existing allocators in a new impeller::InstrumentedAllocator but only in non-release modes.
  • Allow dumping information on allocations to the timeline.
  • Allow tracking how long each allocation survived.
    • If there are multiple short lived allocations, we could be doing something better.
    • Perhaps via delegation in the new impeller::InstrumentedAllocator.
  • Allow additional debug information to be attached to allocations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions