Skip to content

Try measure GPU percentage using IOKit #58197

Closed

Description

@liyuqian

We previously tried using Instruments to get GPU percentage but it's using some private APIs and turns out to be not easily maintainable (#45435).

Recently, while Kaushik was exploring new profiling frameworks, we found that IOKit was recently made public in 2017 and there seems to be some public APIs there to get GPU percentages.

Specifically,

We should be able to combine those two to provide GPU measurements in tracing events. That should also allow DevTools to display GPU percentages, and solve our long-standing issue of re-enabling GPU percentage tests (#45435).

Activity

  1. added
    platform-iosiOS applications specifically
    c: performanceRelates to speed or footprint issues (see "perf:" labels)
    perf: energyPerformance issues related to energy use (power, watts)
    on May 28, 2020
  2. liyuqian commented on May 28, 2020

    @liyuqian
    ContributorAuthor
  3. added
    engineflutter/engine related. See also e: labels.
    P2Important issues not at the top of the work list
    on Jun 16, 2020
  4. liyuqian commented on Oct 5, 2020

    @liyuqian
    ContributorAuthor

    Closing as this is done by flutter-team-archive/engine#18752

  5. github-actions commented on Aug 11, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  6. locked as resolved and limited conversation to collaborators on Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: performanceRelates to speed or footprint issues (see "perf:" labels)engineflutter/engine related. See also e: labels.perf: energyPerformance issues related to energy use (power, watts)platform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions