summaryrefslogtreecommitdiffstats
path: root/src/core/tools/freezer.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-08-06 09:11:19 +0200
committerLioncash <mathew1800@gmail.com>2020-08-06 09:11:21 +0200
commit61cd7eb47d947bd332ea306e74a1491c42854a61 (patch)
tree774cd9eedd36f1510d45575bc1b97926b97a594f /src/core/tools/freezer.h
parentfreezer: Take address values by value (diff)
downloadyuzu-61cd7eb47d947bd332ea306e74a1491c42854a61.tar
yuzu-61cd7eb47d947bd332ea306e74a1491c42854a61.tar.gz
yuzu-61cd7eb47d947bd332ea306e74a1491c42854a61.tar.bz2
yuzu-61cd7eb47d947bd332ea306e74a1491c42854a61.tar.lz
yuzu-61cd7eb47d947bd332ea306e74a1491c42854a61.tar.xz
yuzu-61cd7eb47d947bd332ea306e74a1491c42854a61.tar.zst
yuzu-61cd7eb47d947bd332ea306e74a1491c42854a61.zip
Diffstat (limited to '')
-rw-r--r--src/core/tools/freezer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/tools/freezer.h b/src/core/tools/freezer.h
index 2b2326bc4..0fdb701a7 100644
--- a/src/core/tools/freezer.h
+++ b/src/core/tools/freezer.h
@@ -73,13 +73,18 @@ public:
std::vector<Entry> GetEntries() const;
private:
+ using Entries = std::vector<Entry>;
+
+ Entries::iterator FindEntry(VAddr address);
+ Entries::const_iterator FindEntry(VAddr address) const;
+
void FrameCallback(std::uintptr_t user_data, std::chrono::nanoseconds ns_late);
void FillEntryReads();
std::atomic_bool active{false};
mutable std::mutex entries_mutex;
- std::vector<Entry> entries;
+ Entries entries;
std::shared_ptr<Core::Timing::EventType> event;
Core::Timing::CoreTiming& core_timing;