Implement Perfetto Tracing

This commit implements tracing Skyline using https://perfetto.dev/ for SVCs, IPC, Scheduler and Presentation
This commit is contained in:
Billy Laws
2021-03-12 00:11:12 +05:30
committed by ◱ Mark
parent 1155394d58
commit 6c6e665569
14 changed files with 74 additions and 3 deletions

View File

@ -3,6 +3,7 @@
#pragma once
#include <common/tracing.h>
#include <kernel/types/KEvent.h>
#include "texture.h"
@ -16,6 +17,7 @@ namespace skyline::gpu {
std::condition_variable windowConditional;
jobject surface{}; //!< The Surface object backing the ANativeWindow
u64 frameTimestamp{}; //!< The timestamp of the last frame being shown
perfetto::Track presentationTrack; //!< Perfetto track used for presentation events
public:
texture::Dimensions resolution{};