Step MemoryWatcher at end of each video frame.

This commit is contained in:
Vlad Firoiu committed 2019-05-08 11:20:59 +01:00
1 parent f4d950f4e2
commit 239af3cdf9
5 files changed
+33 -46

No files matched your search

+3 -6
View File
@@ -24,21 +24,18 @@ public:
~MemoryWatcher();
void Step();
static void Init();
static void Shutdown();
private:
bool LoadAddresses(const std::string& path);
bool OpenSocket(const std::string& path);
void ParseLine(const std::string& line);
u32 ChasePointer(const std::string& line);
std::string ComposeMessage(const std::string& line, u32 value);
std::string ComposeMessages();
bool m_running;
bool m_running = false;
int m_fd;
sockaddr_un m_addr;
sockaddr_un m_addr{};
// Address as stored in the file -> list of offsets to follow
std::map<std::string, std::vector<u32>> m_addresses;