1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Also display non-user plot data count.

This commit is contained in:
Bartosz Taudul
2020-02-05 23:41:53 +01:00
parent 1bad607e6c
commit 7425cd7112
3 changed files with 17 additions and 1 deletions
+14 -1
View File
@@ -1697,7 +1697,20 @@ uint64_t Worker::GetPlotCount() const
uint64_t cnt = 0;
for( auto& p : m_data.plots.Data() )
{
if( p->type != PlotType::Memory )
if( p->type == PlotType::User )
{
cnt += p->data.size();
}
}
return cnt;
}
uint64_t Worker::GetTracyPlotCount() const
{
uint64_t cnt = 0;
for( auto& p : m_data.plots.Data() )
{
if( p->type != PlotType::User )
{
cnt += p->data.size();
}