Add pack runtime profiling hooks
Some checks failed
build / Windows Build (push) Has been cancelled

This commit is contained in:
server
2026-04-15 16:22:10 +02:00
parent ef7cdf2809
commit ba6af8115b
12 changed files with 696 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ public:
bool Load(const std::string& path);
const std::vector<TPackFileEntry>& GetIndex() const { return m_index; }
const std::string& GetSourcePath() const { return m_source_path; }
bool GetFile(const TPackFileEntry& entry, TPackFile& result);
bool GetFileWithPool(const TPackFileEntry& entry, TPackFile& result, CBufferPool* pPool);
@@ -22,6 +23,7 @@ private:
void DecryptData(uint8_t* data, size_t len, const uint8_t* nonce);
TPackFileHeader m_header;
std::string m_source_path;
std::vector<TPackFileEntry> m_index;
mio::mmap_source m_file;
};