diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-09-03 17:49:25 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-09-03 18:51:32 +0300 |
commit | 55a82ea7141360443c00e2823f4ef7c651dd24ee (patch) | |
tree | 927faa550798022e33d959943d025e1186ef6805 /server/TracyUtility.hpp | |
parent | 1736fb387ab56f1401824fa8e40e04f962712f4b (diff) |
Make plot color/value formatting generic utilities.
Previous implementations of these functions (in TracyView) are still used
throughout the code. They will be removed in subsequent commits.
Diffstat (limited to 'server/TracyUtility.hpp')
-rw-r--r-- | server/TracyUtility.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/TracyUtility.hpp b/server/TracyUtility.hpp index dae771f8..c752bae6 100644 --- a/server/TracyUtility.hpp +++ b/server/TracyUtility.hpp @@ -4,10 +4,13 @@ #include <stdint.h> #include "imgui.h" +#include "TracyEvent.hpp" namespace tracy { +class Worker; + enum class ShortenName : uint8_t { Never, @@ -22,6 +25,9 @@ void TooltipNormalizedName( const char* name, const char* normalized ); static inline const char* ShortenZoneName( ShortenName type, const char* name ) { ImVec2 tsz = {}; return ShortenZoneName( type, name, tsz, 0 ); } +uint32_t GetPlotColor( const PlotData& plot, const Worker& worker ); +const char* FormatPlotValue( double val, PlotValueFormatting format ); + } #endif |