Skip to content
GitLab
  • Menu
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 1,876
    • Issues 1,876
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 129
    • Merge requests 129
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & 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
  • GNOME
  • gnome-shellgnome-shell
  • Merge requests
  • !573

main: setup GJS profiler when GJS_TRACE_FD is set

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Christian Hergert requested to merge wip/chergert/gjs-trace-fd into master Jun 05, 2019
  • Overview 5
  • Commits 1
  • Pipelines 8
  • Changes 2

This is the same environment variable that will be used in GJS to auto-connect Sysprof to the GJS profiler when the gjs binary is used.

By handling this in main(), we allow GJS to extract stack-traces and GC marks to be correlated with the frame data from cogl when run using sysprof-cli from a secondary VT. (See screenshot below).

sysprof-cli -c "/opt/gnome/bin/gnome-shell --wayland --display-server" --gjs --gnome-shell my-capture.syscap

If you do not want additional C-based stack traces (therefore, only javascript stack traces) add --no-perf to disable the use of perf_event_open() syscall for stacktraces.

and then to view the capture:

sysprof my-capture.syscap

Screenshot_from_2019-06-05_16-59-30

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: wip/chergert/gjs-trace-fd