29#ifndef __PC_COUNT_PAIR_HH__
30#define __PC_COUNT_PAIR_HH__
79 std::string
s =
"(" + std::to_string(
pc)
80 +
"," + std::to_string(
count) +
")";
89 size_t xHash = std::hash<uint64_t>()(item.
pc);
90 size_t yHash = std::hash<uint64_t>()(item.
count);
91 return xHash * 2 + yHash;
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
uint64_t count
The count of the Program Counter address.
constexpr bool operator>(const PcCountPair &cc) const
Greater than comparison.
constexpr Addr getPC() const
Returns the Program Counter address.
std::string to_string() const
String format.
constexpr PcCountPair(Addr _pc, uint64_t _count)
Explicit constructor assigning the pc and count values.
Addr pc
The Program Counter address.
PcCountPair()
Default constructor for parameter classes.
constexpr uint64_t getCount() const
Returns the count of the Program.
constexpr bool operator==(const PcCountPair &cc) const
Equal comparison.
Copyright (c) 2024 Arm Limited All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
Enable hashing for this parameter.
size_t operator()(const PcCountPair &item) const