add custom profiling via Debug(Start|Stop)Profile

This commit is contained in:
Lion Kortlepel
2024-01-24 13:50:11 +01:00
committed by Lion
parent 4347cb4af2
commit 946c1362e1
4 changed files with 14 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ struct Stats {
double stddev;
double min;
double max;
size_t n;
};
/// Calculates and stores the moving average over K samples of execution time data

View File

@@ -256,6 +256,7 @@ private:
sol::table Lua_FS_ListDirectories(const std::string& Path);
prof::UnitProfileCollection mProfile {};
std::unordered_map<std::string, prof::TimePoint> mProfileStarts;
std::string mName;
TLuaStateId mStateId;