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

@ -1,6 +1,7 @@
// SPDX-License-Identifier: MPL-2.0
// Copyright © 2020 Skyline Team and Contributors (https://github.com/skyline-emu/)
#include <common/tracing.h>
#include <android/native_window.h>
#include <kernel/types/KProcess.h>
#include <unistd.h>
@ -22,6 +23,7 @@ namespace skyline::gpu {
}
void Texture::SynchronizeHost() {
TRACE_EVENT("gpu", "Texture::SynchronizeHost");
auto pointer{guest->pointer};
auto size{format.GetSize(dimensions)};
backing.resize(size);