mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-21 09:31:33 -08:00
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.
171 lines
4.2 KiB
JSON
171 lines
4.2 KiB
JSON
{
|
|
"version": 3,
|
|
"cmakeMinimumRequired": {
|
|
"major": 3,
|
|
"minor": 25,
|
|
"patch": 0
|
|
},
|
|
"configurePresets": [
|
|
{
|
|
"name": "base",
|
|
"hidden": true,
|
|
"generator": "Ninja",
|
|
"cacheVariables": {
|
|
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
|
|
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON",
|
|
"CMAKE_BUILD_TYPE": "Debug",
|
|
"WIVRN_BUILD_CLIENT": "OFF",
|
|
"WIVRN_BUILD_SERVER": "OFF",
|
|
"WIVRN_BUILD_SERVER_LIBRARY": "OFF",
|
|
"WIVRN_BUILD_DASHBOARD": "OFF",
|
|
"WIVRN_BUILD_DISSECTOR": "OFF",
|
|
"WIVRN_BUILD_WIVRNCTL": "OFF",
|
|
"WIVRN_USE_VAAPI": "ON",
|
|
"WIVRN_USE_VULKAN_ENCODE": "ON",
|
|
"WIVRN_USE_X264": "ON",
|
|
"WIVRN_USE_NVENC": "ON",
|
|
"WIVRN_USE_SYSTEMD": "ON",
|
|
"WIVRN_USE_SYSTEM_BOOST": "ON",
|
|
"WIVRN_USE_PIPEWIRE": "ON",
|
|
"WIVRN_WERROR": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "everything",
|
|
"displayName": "Everything",
|
|
"inherits": "base",
|
|
"binaryDir": "${sourceDir}/build-everything",
|
|
"cacheVariables": {
|
|
"WIVRN_BUILD_CLIENT": "ON",
|
|
"WIVRN_BUILD_SERVER": "ON",
|
|
"WIVRN_BUILD_SERVER_LIBRARY": "ON",
|
|
"WIVRN_BUILD_WIVRNCTL": "ON",
|
|
"WIVRN_BUILD_DASHBOARD": "ON",
|
|
"WIVRN_BUILD_DISSECTOR": "ON",
|
|
"QT_QML_GENERATE_QMLLS_INI": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "client",
|
|
"displayName": "Client only",
|
|
"inherits": "base",
|
|
"binaryDir": "${sourceDir}/build-client",
|
|
"cacheVariables": {
|
|
"WIVRN_BUILD_CLIENT": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "server",
|
|
"displayName": "Server only",
|
|
"inherits": "base",
|
|
"binaryDir": "${sourceDir}/build-server",
|
|
"cacheVariables": {
|
|
"WIVRN_BUILD_SERVER": "ON",
|
|
"WIVRN_BUILD_SERVER_LIBRARY": "ON",
|
|
"WIVRN_BUILD_WIVRNCTL": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "server-tracing",
|
|
"displayName": "Server with Perfetto tracing",
|
|
"inherits": "server",
|
|
"binaryDir": "${sourceDir}/build-server-tracing",
|
|
"cacheVariables": {
|
|
"WIVRN_USE_PERFETTO": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "server-tracing-monado",
|
|
"displayName": "Server with Perfetto tracing (incl. Monado)",
|
|
"inherits": "server-tracing",
|
|
"binaryDir": "${sourceDir}/build-server-tracing-monado",
|
|
"cacheVariables": {
|
|
"WIVRN_TRACE_MONADO": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "dashboard",
|
|
"displayName": "Dashboard only",
|
|
"inherits": "base",
|
|
"binaryDir": "${sourceDir}/build-dashboard",
|
|
"cacheVariables": {
|
|
"WIVRN_BUILD_DASHBOARD": "ON",
|
|
"QT_QML_GENERATE_QMLLS_INI": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "dissector",
|
|
"displayName": "Wireshark dissector only",
|
|
"inherits": "base",
|
|
"binaryDir": "${sourceDir}/build-dissector",
|
|
"cacheVariables": {
|
|
"WIVRN_BUILD_DISSECTOR": "ON"
|
|
}
|
|
},
|
|
{
|
|
"name": "everything-no-systemd",
|
|
"displayName": "Everything (no systemd)",
|
|
"inherits": "everything",
|
|
"binaryDir": "${sourceDir}/build-no-systemd",
|
|
"cacheVariables": {
|
|
"WIVRN_BUILD_WIVRNCTL": "OFF",
|
|
"WIVRN_USE_SYSTEMD": "OFF"
|
|
}
|
|
},
|
|
{
|
|
"name": "everything-no-system-boost",
|
|
"displayName": "Everything (no system Boost)",
|
|
"inherits": "everything",
|
|
"binaryDir": "${sourceDir}/build-no-system-boost",
|
|
"cacheVariables": {
|
|
"WIVRN_USE_SYSTEM_BOOST": "OFF"
|
|
}
|
|
},
|
|
{
|
|
"name": "server-no-systemd",
|
|
"displayName": "Server only (no systemd)",
|
|
"inherits": "server",
|
|
"binaryDir": "${sourceDir}/build-server-no-systemd",
|
|
"cacheVariables": {
|
|
"WIVRN_BUILD_WIVRNCTL": "OFF",
|
|
"WIVRN_USE_SYSTEMD": "OFF"
|
|
}
|
|
},
|
|
{
|
|
"name": "client-no-system-boost",
|
|
"displayName": "Client only (no system Boost)",
|
|
"inherits": "client",
|
|
"binaryDir": "${sourceDir}/build-client-no-system-boost",
|
|
"cacheVariables": {
|
|
"WIVRN_USE_SYSTEM_BOOST": "OFF"
|
|
}
|
|
},
|
|
{
|
|
"name": "server-no-system-boost",
|
|
"displayName": "Server only (no system Boost)",
|
|
"inherits": "server",
|
|
"binaryDir": "${sourceDir}/build-server-no-system-boost",
|
|
"cacheVariables": {
|
|
"WIVRN_USE_SYSTEM_BOOST": "OFF"
|
|
}
|
|
},
|
|
{
|
|
"name": "dissector-no-system-boost",
|
|
"displayName": "Dissector only (no system Boost)",
|
|
"inherits": "dissector",
|
|
"binaryDir": "${sourceDir}/build-dissector-no-system-boost",
|
|
"cacheVariables": {
|
|
"WIVRN_USE_SYSTEM_BOOST": "OFF"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{
|
|
"name": "default",
|
|
"displayName": "Build and install",
|
|
"configurePreset": "everything",
|
|
"targets": "install"
|
|
}
|
|
]
|
|
}
|