diff options
| author | 2020-08-11 23:07:17 -0400 | |
|---|---|---|
| committer | 2020-08-11 23:07:17 -0400 | |
| commit | a8ffe6eee427087683f02290d83064e1cb754cb2 (patch) | |
| tree | 228c3223454ee6655a9f270b232c393cfd911c43 /src/core/tools/freezer.h | |
| parent | Merge pull request #4493 from jbeich/dragonfly (diff) | |
| parent | freezer: Move entry finding to its own function (diff) | |
| download | yuzu-a8ffe6eee427087683f02290d83064e1cb754cb2.tar.gz yuzu-a8ffe6eee427087683f02290d83064e1cb754cb2.tar.xz yuzu-a8ffe6eee427087683f02290d83064e1cb754cb2.zip | |
Merge pull request #4497 from lioncash/freezer-alg
freezer: Make use of std::erase_if
Diffstat (limited to 'src/core/tools/freezer.h')
| -rw-r--r-- | src/core/tools/freezer.h | 7 |
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: | |||
| 73 | std::vector<Entry> GetEntries() const; | 73 | std::vector<Entry> GetEntries() const; |
| 74 | 74 | ||
| 75 | private: | 75 | private: |
| 76 | using Entries = std::vector<Entry>; | ||
| 77 | |||
| 78 | Entries::iterator FindEntry(VAddr address); | ||
| 79 | Entries::const_iterator FindEntry(VAddr address) const; | ||
| 80 | |||
| 76 | void FrameCallback(std::uintptr_t user_data, std::chrono::nanoseconds ns_late); | 81 | void FrameCallback(std::uintptr_t user_data, std::chrono::nanoseconds ns_late); |
| 77 | void FillEntryReads(); | 82 | void FillEntryReads(); |
| 78 | 83 | ||
| 79 | std::atomic_bool active{false}; | 84 | std::atomic_bool active{false}; |
| 80 | 85 | ||
| 81 | mutable std::mutex entries_mutex; | 86 | mutable std::mutex entries_mutex; |
| 82 | std::vector<Entry> entries; | 87 | Entries entries; |
| 83 | 88 | ||
| 84 | std::shared_ptr<Core::Timing::EventType> event; | 89 | std::shared_ptr<Core::Timing::EventType> event; |
| 85 | Core::Timing::CoreTiming& core_timing; | 90 | Core::Timing::CoreTiming& core_timing; |