mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-07 02:48:24 +00:00
Move AddrStatData from TracySourceView to TracyDisassembly.
This commit is contained in:
@@ -106,6 +106,31 @@ struct DisasmData
|
||||
CpuArchitecture cpuArch;
|
||||
};
|
||||
|
||||
struct AddrStat
|
||||
{
|
||||
uint64_t local;
|
||||
uint64_t ext;
|
||||
|
||||
AddrStat& operator+=( const AddrStat& other )
|
||||
{
|
||||
local += other.local;
|
||||
ext += other.ext;
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
struct AddrStatData
|
||||
{
|
||||
AddrStat ipTotalSrc = {};
|
||||
AddrStat ipTotalAsm = {};
|
||||
AddrStat ipMaxSrc = {};
|
||||
AddrStat ipMaxAsm = {};
|
||||
AddrStat hwMaxSrc = {};
|
||||
AddrStat hwMaxAsm = {};
|
||||
unordered_flat_map<uint64_t, AddrStat> ipCountSrc, ipCountAsm;
|
||||
unordered_flat_map<uint64_t, AddrStat> hwCountSrc, hwCountAsm;
|
||||
};
|
||||
|
||||
DisasmData Disassemble( uint64_t symAddr, const Worker& worker );
|
||||
|
||||
}
|
||||
|
||||
@@ -54,31 +54,6 @@ private:
|
||||
DisplayMixed
|
||||
};
|
||||
|
||||
struct AddrStat
|
||||
{
|
||||
uint64_t local;
|
||||
uint64_t ext;
|
||||
|
||||
AddrStat& operator+=( const AddrStat& other )
|
||||
{
|
||||
local += other.local;
|
||||
ext += other.ext;
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
struct AddrStatData
|
||||
{
|
||||
AddrStat ipTotalSrc = {};
|
||||
AddrStat ipTotalAsm = {};
|
||||
AddrStat ipMaxSrc = {};
|
||||
AddrStat ipMaxAsm = {};
|
||||
AddrStat hwMaxSrc = {};
|
||||
AddrStat hwMaxAsm = {};
|
||||
unordered_flat_map<uint64_t, AddrStat> ipCountSrc, ipCountAsm;
|
||||
unordered_flat_map<uint64_t, AddrStat> hwCountSrc, hwCountAsm;
|
||||
};
|
||||
|
||||
struct History
|
||||
{
|
||||
const char* fileName;
|
||||
|
||||
Reference in New Issue
Block a user