Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-07-02 16:24:59 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-07-02 16:24:59 +0300
commit5ed7d71927a43fef209dceeda2b0dd62bdba13cb (patch)
treed1243f1217d5afca74c7e34f0dd70473333e2e00 /server/TracyView.cpp
parentc2728fde04752bcb1084f7cdbd3206ef7b6c6aa8 (diff)
DrawAllocList() is memory.
Diffstat (limited to 'server/TracyView.cpp')
-rw-r--r--server/TracyView.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp
index e0d51623..189024cc 100644
--- a/server/TracyView.cpp
+++ b/server/TracyView.cpp
@@ -3749,28 +3749,6 @@ void View::DrawRangeEntry( Range& range, const char* label, uint32_t color, cons
}
}
-void View::DrawAllocList()
-{
- const auto scale = GetScale();
- ImGui::SetNextWindowSize( ImVec2( 1100 * scale, 500 * scale ), ImGuiCond_FirstUseEver );
- ImGui::Begin( "Allocations list", &m_memInfo.showAllocList );
- if( ImGui::GetCurrentWindowRead()->SkipItems ) { ImGui::End(); return; }
-
- std::vector<const MemEvent*> data;
- auto basePtr = m_worker.GetMemoryNamed( m_memInfo.pool ).data.data();
- data.reserve( m_memInfo.allocList.size() );
- for( auto& idx : m_memInfo.allocList )
- {
- data.emplace_back( basePtr + idx );
- }
-
- TextFocused( "Number of allocations:", RealToString( m_memInfo.allocList.size() ) );
- ListMemData( data, []( auto v ) {
- ImGui::Text( "0x%" PRIx64, v->Ptr() );
- }, "##allocations", -1, m_memInfo.pool );
- ImGui::End();
-}
-
void View::CrashTooltip()
{
auto& crash = m_worker.GetCrashEvent();