mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-07 22:00:19 +02:00
It is not an external component, and it makes paths needlessly long. Ryan seemed amenable to this when we discussed on IRC earlier. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
25 lines
398 B
C++
25 lines
398 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <unordered_map>
|
|
|
|
namespace FEXCore {
|
|
class BlockSamplingData {
|
|
public:
|
|
struct BlockData {
|
|
uint64_t Start, End;
|
|
uint64_t Min, Max;
|
|
uint64_t TotalTime;
|
|
uint64_t TotalCalls;
|
|
};
|
|
|
|
BlockData *GetBlockData(uint64_t RIP);
|
|
~BlockSamplingData();
|
|
|
|
void DumpBlockData();
|
|
|
|
private:
|
|
std::unordered_map<uint64_t, BlockData*> SamplingMap;
|
|
};
|
|
}
|