mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Debugger: Reduce cost of small copy tracking.
This uses another 400KB RAM and does a bit more writing, but makes lookups faster.
This commit is contained in:
1 parent
351de6eb25
commit
d5c91fa02c
1 file changed
+2
-2
@@ -57,7 +57,7 @@ private:
|
||||
};
|
||||
|
||||
static constexpr uint32_t MAX_SIZE = 0x40000000;
|
||||
static constexpr uint32_t SLICES = 16384;
|
||||
static constexpr uint32_t SLICES = 65536;
|
||||
static constexpr uint32_t SLICE_SIZE = MAX_SIZE / SLICES;
|
||||
|
||||
Slab *FindSlab(uint32_t addr);
|
||||
@@ -371,7 +371,7 @@ void MemSlabMap::FillHeads(Slab *slab) {
|
||||
|
||||
void FlushPendingMemInfo() {
|
||||
std::lock_guard<std::mutex> guard(pendingMutex);
|
||||
for (auto info : pendingNotifies) {
|
||||
for (const auto &info : pendingNotifies) {
|
||||
if (info.flags & MemBlockFlags::ALLOC) {
|
||||
allocMap.Mark(info.start, info.size, info.ticks, info.pc, true, info.tag);
|
||||
} else if (info.flags & MemBlockFlags::FREE) {
|
||||
|
||||
Reference in new issue
Block a user