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.
This commit is contained in:
+1
-2
@@ -9,6 +9,7 @@
|
||||
#include "openxr/openxr.h"
|
||||
#include "sleep_inhibitor.h"
|
||||
#include "util/u_trace_marker.h"
|
||||
#include "utils/wivrn_trace.h"
|
||||
|
||||
#include "active_runtime.h"
|
||||
#include "avahi_publisher.h"
|
||||
@@ -944,8 +945,6 @@ int inner_main(int argc, char * argv[], bool show_instructions)
|
||||
active_runtime::cleanup_openxr();
|
||||
listen_socket = create_listen_socket();
|
||||
|
||||
u_trace_marker_init();
|
||||
|
||||
// Initialize main loop
|
||||
main_loop = g_main_loop_new(nullptr, false);
|
||||
auto main_context = g_main_loop_get_context(main_loop);
|
||||
|
||||
Reference in New Issue
Block a user