mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Add Perfetto Tracing to NCE Trapping API
As a performance sensitive part of code, the NCE Trapping API benefits from having tracing and it helps us better determine where guest code is spending its time for more targeted optimizations.
This commit is contained in:
@ -152,6 +152,8 @@ namespace skyline::gpu {
|
||||
|
||||
std::scoped_lock lock{*texture};
|
||||
}, [weakThis] {
|
||||
TRACE_EVENT("gpu", "Texture::ReadTrap");
|
||||
|
||||
auto texture{weakThis.lock()};
|
||||
if (!texture)
|
||||
return true;
|
||||
@ -164,6 +166,8 @@ namespace skyline::gpu {
|
||||
texture->WaitOnFence();
|
||||
return true;
|
||||
}, [weakThis] {
|
||||
TRACE_EVENT("gpu", "Texture::WriteTrap");
|
||||
|
||||
auto texture{weakThis.lock()};
|
||||
if (!texture)
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user