mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-15 11:25:26 +00:00
u/pacing: Use U_TRACE_PERFETTO define
This commit is contained in:
parent
469a79493c
commit
b49dc593b8
|
@ -250,8 +250,7 @@ predict_display_time(const struct pacing_app *pa, uint64_t now_ns, uint64_t peri
|
|||
static void
|
||||
do_tracing(struct pacing_app *pa, struct u_pa_frame *f)
|
||||
{
|
||||
// Trace the data.
|
||||
#ifdef XRT_FEATURE_TRACING
|
||||
#ifdef U_TRACE_PERCETTO // Uses Percetto specific things.
|
||||
if (!U_TRACE_CATEGORY_IS_ENABLED(timing)) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -402,6 +402,7 @@ adjust_comp_time(struct pacing_compositor *pc, struct frame *f)
|
|||
static void
|
||||
do_tracing(struct pacing_compositor *pc, struct frame *f)
|
||||
{
|
||||
#ifdef U_TRACE_PERCETTO // Uses Percetto specific things.
|
||||
if (!U_TRACE_CATEGORY_IS_ENABLED(timing)) {
|
||||
return;
|
||||
}
|
||||
|
@ -512,6 +513,7 @@ do_tracing(struct pacing_compositor *pc, struct frame *f)
|
|||
|
||||
#undef TE_BEG
|
||||
#undef TE_END
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -156,6 +156,7 @@ static void
|
|||
pc_info_gpu(
|
||||
struct u_pacing_compositor *upc, int64_t frame_id, uint64_t gpu_start_ns, uint64_t gpu_end_ns, uint64_t when_ns)
|
||||
{
|
||||
#ifdef U_TRACE_PERCETTO // Uses Percetto specific things.
|
||||
if (U_TRACE_CATEGORY_IS_ENABLED(timing)) {
|
||||
#define TE_BEG(TRACK, TIME, NAME) U_TRACE_EVENT_BEGIN_ON_TRACK_DATA(timing, TRACK, TIME, NAME, PERCETTO_I(frame_id))
|
||||
#define TE_END(TRACK, TIME) U_TRACE_EVENT_END_ON_TRACK(timing, TRACK, TIME)
|
||||
|
@ -166,6 +167,7 @@ pc_info_gpu(
|
|||
#undef TE_BEG
|
||||
#undef TE_END
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue