mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-30 17:46:48 +01:00
36b24bf7a0
With 7aa305ea358ee1574f1036493411aa2cdf86458f merged, all that remains within Profiler.cpp is an unused function that just forwards to the equivalent function within JitInterface. Given that, we can just remove the source file.
38 lines
712 B
C++
38 lines
712 B
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
namespace Profiler
|
|
{
|
|
struct BlockStat
|
|
{
|
|
BlockStat(u32 _addr, u64 c, u64 ticks, u64 run, u32 size)
|
|
: addr(_addr), cost(c), tick_counter(ticks), run_count(run), block_size(size)
|
|
{
|
|
}
|
|
u32 addr;
|
|
u64 cost;
|
|
u64 tick_counter;
|
|
u64 run_count;
|
|
u32 block_size;
|
|
|
|
bool operator<(const BlockStat& other) const { return cost > other.cost; }
|
|
};
|
|
struct ProfileStats
|
|
{
|
|
std::vector<BlockStat> block_stats;
|
|
u64 cost_sum;
|
|
u64 timecost_sum;
|
|
u64 countsPerSec;
|
|
};
|
|
|
|
} // namespace Profiler
|