mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 05:53:02 +01:00
Implement profiler (#16194)
* Implement profiling API * Add console commands for the profiler * Remove accidental line * Correct csv output * Add copyright notice * Add missing override * Add default virtual destructor * Explicitly pass template argument * Use static * Add plugin API for profiler * Add more profile calls * Workaround for GCC hopefully * Add missing static keyword * Use uint64 for call count * Reduce name length see if CI passes * Improve handling of function names * Work around (broken) static inline variables * Fix missing include * Disable profiler for clang 5 and older * Update copyright date * Profile UpdateAllMiscEntities * Apply review suggestions Co-authored-by: Ted John <ted@brambles.org>
This commit is contained in:
@@ -41,7 +41,7 @@ void Plugin::Load()
|
||||
LoadCodeFromFile();
|
||||
}
|
||||
|
||||
std::string projectedVariables = "console,context,date,map,network,park";
|
||||
std::string projectedVariables = "console,context,date,map,network,park,profiler";
|
||||
if (!gOpenRCT2Headless)
|
||||
{
|
||||
projectedVariables += ",ui";
|
||||
|
||||
Reference in New Issue
Block a user