mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 19:07:01 +02:00
profiler: use native Tracy scopes and remove unused manual lifetime tracking
This commit is contained in:
@@ -808,15 +808,9 @@ static void GetDynLibs(Elf64* elf, T* out, const char* names, Elf64_Sxword tag)
|
||||
static RelocationInfo GetRelocationInfo(Elf64_Rela* r, Program* program) {
|
||||
KYTY_PROFILER_FUNCTION();
|
||||
|
||||
// KYTY_PROFILER_BLOCK("1");
|
||||
|
||||
RelocationInfo ret;
|
||||
// SymbolRecord sr {};
|
||||
|
||||
// KYTY_PROFILER_END_BLOCK;
|
||||
|
||||
// KYTY_PROFILER_BLOCK("2");
|
||||
|
||||
auto type = r->GetType();
|
||||
auto symbol = r->GetSymbol();
|
||||
Elf64_Sxword addend = r->r_addend;
|
||||
@@ -826,10 +820,6 @@ static RelocationInfo GetRelocationInfo(Elf64_Rela* r, Program* program) {
|
||||
ret.vaddr = ret.base_vaddr + r->r_offset;
|
||||
ret.bind_self = false;
|
||||
|
||||
// KYTY_PROFILER_END_BLOCK;
|
||||
|
||||
// KYTY_PROFILER_BLOCK("3");
|
||||
|
||||
switch (type) {
|
||||
case R_X86_64_GLOB_DAT:
|
||||
case R_X86_64_JUMP_SLOT: addend = 0; [[fallthrough]];
|
||||
@@ -878,8 +868,6 @@ static RelocationInfo GetRelocationInfo(Elf64_Rela* r, Program* program) {
|
||||
default: EXIT("unknown type: %d\n", (int)type);
|
||||
}
|
||||
|
||||
// KYTY_PROFILER_END_BLOCK;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user