Skip to content

Commit

Permalink
Commentate the tracy plot storage
Browse files Browse the repository at this point in the history
  • Loading branch information
sprunk committed Jan 27, 2024
1 parent cb4614d commit 6d5b246
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions rts/Lua/LuaUnsyncedCtrl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4870,8 +4870,12 @@ int LuaUnsyncedCtrl::Yield(lua_State* L)
return 1;
}

/* NB: strings here are never cleaned up, but the use case assumes
* that they live a long time and there's just a handful of them */
/* Tracy seems to want unique, unchanging strings to be passed to
* its API, so we need to immanentize the ephemeral Lua strings
* and store them.
*
* NB: strings here are never cleaned up, but the use case assumes
* that they live a long time and there's just a handful of them. */
std::set <std::string, std::less<>> tracyLuaPlots;

/*** Configure custom appearence for a Tracy plot for use in debugging or profiling
Expand Down

0 comments on commit 6d5b246

Please sign in to comment.