The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

u/pacing: Use U_TRACE_PERFETTO define

+5 -2
+1 -2
src/xrt/auxiliary/util/u_pacing_app.c
··· 250 250 static void 251 251 do_tracing(struct pacing_app *pa, struct u_pa_frame *f) 252 252 { 253 - // Trace the data. 254 - #ifdef XRT_FEATURE_TRACING 253 + #ifdef U_TRACE_PERCETTO // Uses Percetto specific things. 255 254 if (!U_TRACE_CATEGORY_IS_ENABLED(timing)) { 256 255 return; 257 256 }
+2
src/xrt/auxiliary/util/u_pacing_compositor.c
··· 402 402 static void 403 403 do_tracing(struct pacing_compositor *pc, struct frame *f) 404 404 { 405 + #ifdef U_TRACE_PERCETTO // Uses Percetto specific things. 405 406 if (!U_TRACE_CATEGORY_IS_ENABLED(timing)) { 406 407 return; 407 408 } ··· 512 513 513 514 #undef TE_BEG 514 515 #undef TE_END 516 + #endif 515 517 } 516 518 517 519
+2
src/xrt/auxiliary/util/u_pacing_compositor_fake.c
··· 156 156 pc_info_gpu( 157 157 struct u_pacing_compositor *upc, int64_t frame_id, uint64_t gpu_start_ns, uint64_t gpu_end_ns, uint64_t when_ns) 158 158 { 159 + #ifdef U_TRACE_PERCETTO // Uses Percetto specific things. 159 160 if (U_TRACE_CATEGORY_IS_ENABLED(timing)) { 160 161 #define TE_BEG(TRACK, TIME, NAME) U_TRACE_EVENT_BEGIN_ON_TRACK_DATA(timing, TRACK, TIME, NAME, PERCETTO_I(frame_id)) 161 162 #define TE_END(TRACK, TIME) U_TRACE_EVENT_END_ON_TRACK(timing, TRACK, TIME) ··· 166 167 #undef TE_BEG 167 168 #undef TE_END 168 169 } 170 + #endif 169 171 } 170 172 171 173 static void