From 2157c8a2b2f39443b40e2f6e6294e53ea49508c9 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sun, 15 Mar 2015 20:32:40 -0700 Subject: [PATCH] Dropping a bunch of profiling - VB/IB upload is slow, that's about it. --- src/alloy/runtime/runtime.cc | 9 --------- src/xenia/gpu/gl4/command_processor.cc | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/alloy/runtime/runtime.cc b/src/alloy/runtime/runtime.cc index f3e3ba7c1..0b4fa0b0f 100644 --- a/src/alloy/runtime/runtime.cc +++ b/src/alloy/runtime/runtime.cc @@ -14,7 +14,6 @@ #include "alloy/runtime/module.h" #include "poly/poly.h" #include "xdb/protocol.h" -#include "xenia/profiling.h" // TODO(benvanik): based on compiler support #include "alloy/backend/x64/x64_backend.h" @@ -155,8 +154,6 @@ std::vector Runtime::FindFunctionsWithAddress(uint64_t address) { } int Runtime::ResolveFunction(uint64_t address, Function** out_function) { - SCOPE_profile_cpu_f("alloy"); - *out_function = nullptr; Entry* entry; Entry::Status status = entry_table_.GetOrCreate(address, &entry); @@ -190,8 +187,6 @@ int Runtime::ResolveFunction(uint64_t address, Function** out_function) { int Runtime::LookupFunctionInfo(uint64_t address, FunctionInfo** out_symbol_info) { - SCOPE_profile_cpu_f("alloy"); - *out_symbol_info = nullptr; // TODO(benvanik): fast reject invalid addresses/log errors. @@ -219,8 +214,6 @@ int Runtime::LookupFunctionInfo(uint64_t address, int Runtime::LookupFunctionInfo(Module* module, uint64_t address, FunctionInfo** out_symbol_info) { - SCOPE_profile_cpu_f("alloy"); - // Atomic create/lookup symbol in module. // If we get back the NEW flag we must declare it now. FunctionInfo* symbol_info = nullptr; @@ -242,8 +235,6 @@ int Runtime::LookupFunctionInfo(Module* module, uint64_t address, int Runtime::DemandFunction(FunctionInfo* symbol_info, Function** out_function) { - SCOPE_profile_cpu_f("alloy"); - *out_function = nullptr; // Lock function for generation. If it's already being generated diff --git a/src/xenia/gpu/gl4/command_processor.cc b/src/xenia/gpu/gl4/command_processor.cc index 16d61837f..47dee4718 100644 --- a/src/xenia/gpu/gl4/command_processor.cc +++ b/src/xenia/gpu/gl4/command_processor.cc @@ -22,7 +22,7 @@ #include "third_party/xxhash/xxhash.h" -#define FINE_GRAINED_DRAW_SCOPES 1 +#define FINE_GRAINED_DRAW_SCOPES 0 namespace xe { namespace gpu {