Moving profiling.h to base - UI could be separated for cleanliness.

This commit is contained in:
Ben Vanik 2015-11-07 11:25:53 -08:00
parent 563552f62f
commit 4af6c41740
41 changed files with 42 additions and 43 deletions

View File

@ -13,10 +13,10 @@
#include "xenia/base/clock.h"
#include "xenia/base/logging.h"
#include "xenia/base/platform.h"
#include "xenia/base/profiling.h"
#include "xenia/base/threading.h"
#include "xenia/emulator.h"
#include "xenia/gpu/graphics_system.h"
#include "xenia/profiling.h"
namespace xe {
namespace app {

View File

@ -12,9 +12,9 @@
#include "xenia/app/emulator_window.h"
#include "xenia/base/logging.h"
#include "xenia/base/main.h"
#include "xenia/base/profiling.h"
#include "xenia/debug/ui/debug_window.h"
#include "xenia/emulator.h"
#include "xenia/profiling.h"
#include "xenia/ui/file_picker.h"
DEFINE_string(target, "", "Specifies the target .xex or .iso to execute.");

View File

@ -14,11 +14,11 @@
#include "xenia/apu/xma_decoder.h"
#include "xenia/base/logging.h"
#include "xenia/base/math.h"
#include "xenia/base/profiling.h"
#include "xenia/base/ring_buffer.h"
#include "xenia/base/string_buffer.h"
#include "xenia/base/threading.h"
#include "xenia/cpu/thread_state.h"
#include "xenia/profiling.h"
#include "xenia/apu/nop/nop_audio_system.h"
#if XE_PLATFORM_WIN32

View File

@ -16,8 +16,8 @@
#include "xenia/apu/xma_helpers.h"
#include "xenia/base/bit_stream.h"
#include "xenia/base/logging.h"
#include "xenia/base/profiling.h"
#include "xenia/base/ring_buffer.h"
#include "xenia/profiling.h"
extern "C" {
#include "third_party/libav/libavcodec/avcodec.h"

View File

@ -14,12 +14,12 @@
#include "xenia/apu/xma_context.h"
#include "xenia/base/logging.h"
#include "xenia/base/math.h"
#include "xenia/base/profiling.h"
#include "xenia/base/ring_buffer.h"
#include "xenia/base/string_buffer.h"
#include "xenia/cpu/processor.h"
#include "xenia/cpu/thread_state.h"
#include "xenia/kernel/xthread.h"
#include "xenia/profiling.h"
extern "C" {
#include "third_party/libav/libavutil/log.h"

View File

@ -8,6 +8,7 @@ project("xenia-base")
defines({
})
includedirs({
project_root.."/third_party/elemental-forms/src",
project_root.."/build_tools/third_party/gflags/src",
})
local_platform_files()

View File

@ -30,7 +30,7 @@
#include "third_party/microprofile/microprofile.h"
#include "xenia/base/assert.h"
#include "xenia/profiling.h"
#include "xenia/base/profiling.h"
#include "xenia/ui/window.h"
#if XE_OPTION_PROFILING

View File

@ -7,8 +7,8 @@
******************************************************************************
*/
#ifndef XENIA_PROFILING_H_
#define XENIA_PROFILING_H_
#ifndef XENIA_BASE_PROFILING_H_
#define XENIA_BASE_PROFILING_H_
#include <memory>
@ -176,4 +176,4 @@ class Profiler {
} // namespace xe
#endif // XENIA_PROFILING_H_
#endif // XENIA_BASE_PROFILING_H_

View File

@ -13,6 +13,7 @@
#include "third_party/capstone/include/capstone/capstone.h"
#include "third_party/capstone/include/capstone/x86.h"
#include "xenia/base/profiling.h"
#include "xenia/base/reset_scope.h"
#include "xenia/cpu/backend/x64/x64_backend.h"
#include "xenia/cpu/backend/x64/x64_emitter.h"
@ -21,7 +22,6 @@
#include "xenia/cpu/hir/hir_builder.h"
#include "xenia/cpu/hir/label.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
namespace xe {
namespace cpu {

View File

@ -19,6 +19,7 @@
#include "xenia/base/logging.h"
#include "xenia/base/math.h"
#include "xenia/base/memory.h"
#include "xenia/base/profiling.h"
#include "xenia/base/vec128.h"
#include "xenia/cpu/backend/x64/x64_backend.h"
#include "xenia/cpu/backend/x64/x64_code_cache.h"
@ -32,7 +33,6 @@
#include "xenia/cpu/symbol.h"
#include "xenia/cpu/thread_state.h"
#include "xenia/debug/debugger.h"
#include "xenia/profiling.h"
DEFINE_bool(enable_debugprint_log, false,
"Log debugprint traps to the active debugger");

View File

@ -9,8 +9,8 @@
#include "xenia/cpu/compiler/compiler.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/compiler/compiler_pass.h"
#include "xenia/profiling.h"
namespace xe {
namespace cpu {

View File

@ -12,9 +12,9 @@
#include <gflags/gflags.h>
#include "xenia/base/assert.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/function.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
DEFINE_bool(inline_mmio_access, true, "Inline constant MMIO loads and stores.");

View File

@ -11,9 +11,9 @@
#include <gflags/gflags.h>
#include "xenia/base/profiling.h"
#include "xenia/cpu/compiler/compiler.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
DECLARE_bool(debug);

View File

@ -9,10 +9,10 @@
#include "xenia/cpu/compiler/passes/control_flow_analysis_pass.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/backend/backend.h"
#include "xenia/cpu/compiler/compiler.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
namespace xe {
namespace cpu {

View File

@ -9,10 +9,10 @@
#include "xenia/cpu/compiler/passes/control_flow_simplification_pass.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/backend/backend.h"
#include "xenia/cpu/compiler/compiler.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
namespace xe {
namespace cpu {

View File

@ -11,10 +11,10 @@
#include "xenia/base/assert.h"
#include "xenia/base/platform.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/backend/backend.h"
#include "xenia/cpu/compiler/compiler.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
#if XE_COMPILER_MSVC
#pragma warning(push)

View File

@ -9,7 +9,7 @@
#include "xenia/cpu/compiler/passes/dead_code_elimination_pass.h"
#include "xenia/profiling.h"
#include "xenia/base/profiling.h"
namespace xe {
namespace cpu {

View File

@ -9,10 +9,10 @@
#include "xenia/cpu/compiler/passes/finalization_pass.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/backend/backend.h"
#include "xenia/cpu/compiler/compiler.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
namespace xe {
namespace cpu {

View File

@ -9,7 +9,7 @@
#include "xenia/cpu/compiler/passes/memory_sequence_combination_pass.h"
#include "xenia/profiling.h"
#include "xenia/base/profiling.h"
namespace xe {
namespace cpu {

View File

@ -15,7 +15,7 @@
#include "xenia/base/assert.h"
#include "xenia/base/logging.h"
#include "xenia/base/math.h"
#include "xenia/profiling.h"
#include "xenia/base/profiling.h"
namespace xe {
namespace cpu {

View File

@ -9,7 +9,7 @@
#include "xenia/cpu/compiler/passes/simplification_pass.h"
#include "xenia/profiling.h"
#include "xenia/base/profiling.h"
namespace xe {
namespace cpu {

View File

@ -10,10 +10,10 @@
#include "xenia/cpu/compiler/passes/validation_pass.h"
#include "xenia/base/assert.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/backend/backend.h"
#include "xenia/cpu/compiler/compiler.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
namespace xe {
namespace cpu {

View File

@ -10,10 +10,10 @@
#include "xenia/cpu/compiler/passes/value_reduction_pass.h"
#include "xenia/base/platform.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/backend/backend.h"
#include "xenia/cpu/compiler/compiler.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
#if XE_COMPILER_MSVC
#pragma warning(push)

View File

@ -9,8 +9,8 @@
#include "xenia/cpu/entry_table.h"
#include "xenia/base/profiling.h"
#include "xenia/base/threading.h"
#include "xenia/profiling.h"
namespace xe {
namespace cpu {

View File

@ -14,6 +14,7 @@
#include "xenia/base/byte_order.h"
#include "xenia/base/logging.h"
#include "xenia/base/memory.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/cpu_flags.h"
#include "xenia/cpu/frontend/ppc_context.h"
#include "xenia/cpu/frontend/ppc_disasm.h"
@ -21,7 +22,6 @@
#include "xenia/cpu/frontend/ppc_instr.h"
#include "xenia/cpu/hir/label.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
namespace xe {
namespace cpu {

View File

@ -14,10 +14,10 @@
#include "xenia/base/logging.h"
#include "xenia/base/memory.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/frontend/ppc_frontend.h"
#include "xenia/cpu/frontend/ppc_instr.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
#if 0
#define LOGPPC(fmt, ...) XELOGCORE('p', fmt, ##__VA_ARGS__)

View File

@ -14,6 +14,7 @@
#include "xenia/base/assert.h"
#include "xenia/base/byte_order.h"
#include "xenia/base/memory.h"
#include "xenia/base/profiling.h"
#include "xenia/base/reset_scope.h"
#include "xenia/cpu/compiler/compiler_passes.h"
#include "xenia/cpu/cpu_flags.h"
@ -24,7 +25,6 @@
#include "xenia/cpu/frontend/ppc_scanner.h"
#include "xenia/cpu/processor.h"
#include "xenia/debug/debugger.h"
#include "xenia/profiling.h"
DEFINE_bool(preserve_hir_disasm, true,
"Preserves HIR disassembly for the debugger when it is attached.");

View File

@ -14,12 +14,12 @@
#include <cstring>
#include "xenia/base/assert.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/function.h"
#include "xenia/cpu/hir/block.h"
#include "xenia/cpu/hir/instr.h"
#include "xenia/cpu/hir/label.h"
#include "xenia/cpu/symbol.h"
#include "xenia/profiling.h"
// Will scribble arena memory to hopefully find use before clears.
// #define SCRIBBLE_ARENA_ON_RESET

View File

@ -14,9 +14,9 @@
#include <sstream> // NOLINT(readability/streams): should be replaced.
#include <string>
#include "xenia/base/profiling.h"
#include "xenia/base/threading.h"
#include "xenia/cpu/processor.h"
#include "xenia/profiling.h"
namespace xe {
namespace cpu {

View File

@ -16,6 +16,7 @@
#include "xenia/base/byte_order.h"
#include "xenia/base/logging.h"
#include "xenia/base/memory.h"
#include "xenia/base/profiling.h"
#include "xenia/cpu/cpu_flags.h"
#include "xenia/cpu/export_resolver.h"
#include "xenia/cpu/frontend/ppc_frontend.h"
@ -24,7 +25,6 @@
#include "xenia/cpu/thread_state.h"
#include "xenia/cpu/xex_module.h"
#include "xenia/debug/debugger.h"
#include "xenia/profiling.h"
// TODO(benvanik): based on compiler support
#include "xenia/cpu/backend/x64/x64_backend.h"

View File

@ -18,6 +18,7 @@
#include "xenia/base/debugging.h"
#include "xenia/base/exception_handler.h"
#include "xenia/base/logging.h"
#include "xenia/base/profiling.h"
#include "xenia/base/string.h"
#include "xenia/cpu/backend/code_cache.h"
#include "xenia/gpu/graphics_system.h"
@ -26,7 +27,6 @@
#include "xenia/kernel/xam/xam_module.h"
#include "xenia/kernel/xboxkrnl/xboxkrnl_module.h"
#include "xenia/memory.h"
#include "xenia/profiling.h"
#include "xenia/vfs/devices/disc_image_device.h"
#include "xenia/vfs/devices/host_path_device.h"
#include "xenia/vfs/devices/stfs_container_device.h"

View File

@ -13,6 +13,7 @@
#include "xenia/base/logging.h"
#include "xenia/base/math.h"
#include "xenia/base/profiling.h"
#include "xenia/emulator.h"
#include "xenia/gpu/gl4/gl4_gpu_flags.h"
#include "xenia/gpu/gl4/gl4_graphics_system.h"
@ -20,7 +21,6 @@
#include "xenia/gpu/sampler_info.h"
#include "xenia/gpu/texture_info.h"
#include "xenia/gpu/xenos.h"
#include "xenia/profiling.h"
#include "third_party/xxhash/xxhash.h"

View File

@ -14,13 +14,13 @@
#include "xenia/base/clock.h"
#include "xenia/base/logging.h"
#include "xenia/base/profiling.h"
#include "xenia/base/threading.h"
#include "xenia/cpu/processor.h"
#include "xenia/emulator.h"
#include "xenia/gpu/gl4/gl4_gpu_flags.h"
#include "xenia/gpu/gpu_flags.h"
#include "xenia/gpu/tracing.h"
#include "xenia/profiling.h"
#include "xenia/ui/window.h"
namespace xe {

View File

@ -16,8 +16,8 @@
#include "xenia/base/logging.h"
#include "xenia/base/math.h"
#include "xenia/base/memory.h"
#include "xenia/base/profiling.h"
#include "xenia/gpu/gpu_flags.h"
#include "xenia/profiling.h"
namespace xe {
namespace gpu {

View File

@ -17,12 +17,12 @@
#include "xenia/base/mapped_memory.h"
#include "xenia/base/math.h"
#include "xenia/base/platform_win.h"
#include "xenia/base/profiling.h"
#include "xenia/emulator.h"
#include "xenia/gpu/graphics_system.h"
#include "xenia/gpu/register_file.h"
#include "xenia/gpu/tracing.h"
#include "xenia/gpu/xenos.h"
#include "xenia/profiling.h"
#include "xenia/ui/gl/gl_context.h"
#include "xenia/ui/imgui_drawer.h"
#include "xenia/ui/window.h"

View File

@ -9,9 +9,9 @@
#include "xenia/hid/input_system.h"
#include "xenia/base/profiling.h"
#include "xenia/hid/hid_flags.h"
#include "xenia/hid/input_driver.h"
#include "xenia/profiling.h"
#include "xenia/hid/nop/nop_hid.h"
#if XE_PLATFORM_WIN32

View File

@ -16,13 +16,13 @@
#include "xenia/base/clock.h"
#include "xenia/base/logging.h"
#include "xenia/base/math.h"
#include "xenia/base/profiling.h"
#include "xenia/base/threading.h"
#include "xenia/cpu/processor.h"
#include "xenia/emulator.h"
#include "xenia/kernel/kernel_state.h"
#include "xenia/kernel/user_module.h"
#include "xenia/kernel/xevent.h"
#include "xenia/profiling.h"
DEFINE_bool(ignore_thread_priorities, true,
"Ignores game-specified thread priorities.");

View File

@ -13,7 +13,7 @@
#include "el/util/math.h"
#include "xenia/base/assert.h"
#include "xenia/base/logging.h"
#include "xenia/profiling.h"
#include "xenia/base/profiling.h"
#include "xenia/ui/window.h"
namespace xe {

View File

@ -17,7 +17,7 @@
#include "xenia/base/assert.h"
#include "xenia/base/logging.h"
#include "xenia/base/math.h"
#include "xenia/profiling.h"
#include "xenia/base/profiling.h"
#include "xenia/ui/gl/gl_immediate_drawer.h"
#include "xenia/ui/window.h"

View File

@ -34,7 +34,6 @@ project("xenia-ui-window-gl-demo")
"glew",
"imgui",
"xenia-base",
"xenia-core",
"xenia-ui",
"xenia-ui-gl",
})

View File

@ -17,8 +17,8 @@
#include "xenia/base/logging.h"
#include "xenia/base/main.h"
#include "xenia/base/platform_win.h"
#include "xenia/base/profiling.h"
#include "xenia/base/threading.h"
#include "xenia/profiling.h"
#include "xenia/ui/imgui_drawer.h"
#include "xenia/ui/window.h"
@ -200,4 +200,3 @@ int window_demo_main(const std::vector<std::wstring>& args) {
} // namespace ui
} // namespace xe