Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gnome-shell gnome-shell
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2,052
    • Issues 2,052
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 147
    • Merge requests 147
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gnome-shellgnome-shell
  • Merge requests
  • !941

perf-tool: Allow to run as a Wayland compositor

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Olivier Fourdan requested to merge ofourdan/gnome-shell:gnome-shell-perf-tool-wayland into master Jan 21, 2020
  • Overview 7
  • Commits 2
  • Pipelines 22
  • Changes 2

On Wayland, the display server is the Wayland compositor, i.e. gnome-shell itself.

As a result, we cannot spawn gnome-shell-perf-helper before gnome-shell is started, as gnome-shell-perf-helper needs to connect to the display server.

So, instead of spawning gnome-shell-perf-helper from the Python script gnome-shell-perf-tool, start it from gnome-shell itself.

Also, using the --replace option which does not work when gnome-shell is a Wayland compositor.

Add a --wayland option to gnome-shell-perf-tool so that it can spawn gnome-shell as a Wayland compositor so the whole perf tool can be starred from a console with:

  $ dbus-run-session -- gnome-shell-perf-tool --wayland

For testing purpose, --nested is also added, but the performance reported when gnome-shell runs as a nested Wayland compositor might not be significant:

  $ dbus-run-session -- gnome-shell-perf-tool --nested
Edited Jan 24, 2020 by Olivier Fourdan
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: gnome-shell-perf-tool-wayland