Files
WiVRn/.github/workflows/Format.yml
T
Jonathan Steffan b9c8a54d92 Add WiVRn-native Perfetto via Perfetto SDK
Optional server profiling built on the Perfetto SDK. Adds CPU spans
(compositor, encoder, network), GPU encode/copy slices from Vulkan timestamp
queries (Vulkan/NVENC/VAAPI), and headset feedback markers from dump_time.

WIVRN_TRACING enables tracing and selects the backend (system, inprocess, or
both); WIVRN_USE_PERFETTO gates it at build time and compiles it out otherwise.
WIVRN_TRACE_MONADO additionally drives Monado's percetto tracing from the same
switch so WiVRn and Monado land on one timeline.

Tooling: server-tracing[-monado] presets and a CI build, two Perfetto configs
(WiVRn-only and full-system), a wivrn_capture.py capture wrapper, a pftrace
summary script, and docs/profiling.md.
2026-07-01 21:04:08 +02:00

40 lines
999 B
YAML

name: Format
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting check
runs-on: ubuntu-24.04
if: ${{ vars.APK_ONLY == '' }}
strategy:
fail-fast: false
matrix:
path:
- 'client'
- 'server'
- 'dashboard'
- 'common'
- 'tools/wireshark'
steps:
- uses: actions/checkout@v6
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/[email protected]
with:
clang-format-version: '21'
check-path: ${{ matrix.path }}
python-format-check:
name: Python lint (ruff)
runs-on: ubuntu-24.04
if: ${{ vars.APK_ONLY == '' }}
steps:
- uses: actions/checkout@v6
# Scope set by `include` in ruff.toml.
- name: Run ruff lint check
uses: astral-sh/ruff-action@v3
with:
args: "check"
- name: Run ruff format check
uses: astral-sh/ruff-action@v3
with:
args: "format --check"