Extract Find Zone UI to a separate file.

This commit is contained in:
Bartosz Taudul 2022-07-02 12:59:25 +02:00
parent 91bbe03448
commit 2473760c04
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
6 changed files with 1771 additions and 1749 deletions

View File

@ -136,6 +136,7 @@
<ClCompile Include="..\..\..\server\TracyThreadCompress.cpp" /> <ClCompile Include="..\..\..\server\TracyThreadCompress.cpp" />
<ClCompile Include="..\..\..\server\TracyUserData.cpp" /> <ClCompile Include="..\..\..\server\TracyUserData.cpp" />
<ClCompile Include="..\..\..\server\TracyView.cpp" /> <ClCompile Include="..\..\..\server\TracyView.cpp" />
<ClCompile Include="..\..\..\server\TracyView_FindZone.cpp" />
<ClCompile Include="..\..\..\server\TracyWeb.cpp" /> <ClCompile Include="..\..\..\server\TracyWeb.cpp" />
<ClCompile Include="..\..\..\server\TracyWorker.cpp" /> <ClCompile Include="..\..\..\server\TracyWorker.cpp" />
<ClCompile Include="..\..\..\zstd\common\debug.c" /> <ClCompile Include="..\..\..\zstd\common\debug.c" />

View File

@ -243,6 +243,9 @@
<ClCompile Include="..\..\..\nfd\nfd_win.cpp"> <ClCompile Include="..\..\..\nfd\nfd_win.cpp">
<Filter>nfd</Filter> <Filter>nfd</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\..\server\TracyView_FindZone.cpp">
<Filter>server</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="..\..\..\common\tracy_lz4.hpp"> <ClInclude Include="..\..\..\common\tracy_lz4.hpp">

View File

@ -131,6 +131,22 @@ const char* TimeToStringExact( int64_t ns );
const char* MemSizeToString( int64_t val ); const char* MemSizeToString( int64_t val );
const char* LocationToString( const char* fn, uint32_t line ); const char* LocationToString( const char* fn, uint32_t line );
static tracy_force_inline void PrintStringPercent( char* buf, const char* string, double percent )
{
const auto ssz = strlen( string );
memcpy( buf, string, ssz );
memcpy( buf+ssz, " (", 2 );
auto end = PrintFloat( buf+ssz+2, buf+128, percent, 2 );
memcpy( end, "%)", 3 );
}
static tracy_force_inline void PrintStringPercent( char* buf, double percent )
{
memcpy( buf, "(", 2 );
auto end = PrintFloat( buf+1, buf+64, percent, 2 );
memcpy( end, "%)", 3 );
}
} }
#endif #endif

File diff suppressed because it is too large Load Diff

View File

@ -379,6 +379,7 @@ private:
} }
void AdjustThreadHeight( View::VisData& vis, int oldOffset, int& offset ); void AdjustThreadHeight( View::VisData& vis, int oldOffset, int& offset );
void DrawHistogramMinMaxLabel( ImDrawList* draw, int64_t tmin, int64_t tmax, ImVec2 wpos, float w, float ty );
Worker m_worker; Worker m_worker;
std::string m_filename, m_filenameStaging; std::string m_filename, m_filenameStaging;

File diff suppressed because it is too large Load Diff