Step MemoryWatcher at end of each video frame.

This commit is contained in:
Vlad Firoiu
2017-02-25 20:58:33 -08:00
parent f4d950f4e2
commit 239af3cdf9
5 changed files with 33 additions and 46 deletions

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;