Files
m2dev-client-src/src/PackLib/PackProfile.h
2026-04-15 16:22:10 +02:00

30 lines
750 B
C++

#pragma once
#include <cstddef>
#include <cstdint>
#include <string_view>
void InitializePackProfile(const char* commandLine);
bool IsPackProfileEnabled();
void MarkPackProfilePhase(std::string_view phase);
void RecordPackProfileMount(
std::string_view format,
std::string_view packPath,
bool ok,
std::size_t entryCount,
std::uint64_t elapsedUs);
void RecordPackProfileLoad(
std::string_view format,
std::string_view packPath,
std::string_view requestPath,
bool ok,
std::uint64_t outputBytes,
std::uint64_t elapsedUs);
void RecordPackProfileStage(
std::string_view format,
std::string_view stage,
std::uint64_t inputBytes,
std::uint64_t outputBytes,
std::uint64_t elapsedUs);
void FlushPackProfileSnapshot(std::string_view reason);