mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 16:54:35 +00:00
Extract Find Zone UI to a separate file.
This commit is contained in:
parent
91bbe03448
commit
2473760c04
@ -136,6 +136,7 @@
|
||||
<ClCompile Include="..\..\..\server\TracyThreadCompress.cpp" />
|
||||
<ClCompile Include="..\..\..\server\TracyUserData.cpp" />
|
||||
<ClCompile Include="..\..\..\server\TracyView.cpp" />
|
||||
<ClCompile Include="..\..\..\server\TracyView_FindZone.cpp" />
|
||||
<ClCompile Include="..\..\..\server\TracyWeb.cpp" />
|
||||
<ClCompile Include="..\..\..\server\TracyWorker.cpp" />
|
||||
<ClCompile Include="..\..\..\zstd\common\debug.c" />
|
||||
|
@ -243,6 +243,9 @@
|
||||
<ClCompile Include="..\..\..\nfd\nfd_win.cpp">
|
||||
<Filter>nfd</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\server\TracyView_FindZone.cpp">
|
||||
<Filter>server</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\common\tracy_lz4.hpp">
|
||||
|
@ -131,6 +131,22 @@ const char* TimeToStringExact( int64_t ns );
|
||||
const char* MemSizeToString( int64_t val );
|
||||
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
|
||||
|
1751
server/TracyView.cpp
1751
server/TracyView.cpp
File diff suppressed because it is too large
Load Diff
@ -379,6 +379,7 @@ private:
|
||||
}
|
||||
|
||||
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;
|
||||
std::string m_filename, m_filenameStaging;
|
||||
|
1748
server/TracyView_FindZone.cpp
Normal file
1748
server/TracyView_FindZone.cpp
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user