Skip to content

Commit

Permalink
Rename requested_stats_count to stat_data_count in HWCPipeStatsProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
Assert-Backslash committed May 27, 2024
1 parent 374b60d commit d292bf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions framework/stats/hwcpipe_stats_provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,11 @@ HWCPipeStatsProvider::HWCPipeStatsProvider(std::set<StatIndex> &requested_stats)
requested_stats.erase(iter.first);
}

requested_stats_count = stat_data.size();
stat_data_count = stat_data.size();

sampler = std::make_unique<hwcpipe::sampler<>>(config);

if (requested_stats_count > 0)
if (stat_data_count > 0)
{
ec = sampler->start_sampling();
if (ec)
Expand All @@ -156,7 +156,7 @@ HWCPipeStatsProvider::~HWCPipeStatsProvider()
{
std::error_code ec;

if (requested_stats_count > 0)
if (stat_data_count > 0)
{
ec = sampler->stop_sampling();
if (ec)
Expand Down Expand Up @@ -204,7 +204,7 @@ StatsProvider::Counters HWCPipeStatsProvider::sample(float delta_time)
{
Counters res;

if (requested_stats_count < 1)
if (stat_data_count < 1)
{
return res;
}
Expand Down
2 changes: 1 addition & 1 deletion framework/stats/hwcpipe_stats_provider.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class HWCPipeStatsProvider : public StatsProvider
private:
std::unique_ptr<hwcpipe::sampler<>> sampler;

size_t requested_stats_count{0};
size_t stat_data_count{0};

// Only stats which are available and were requested end up in stat_data
StatDataMap stat_data;
Expand Down

0 comments on commit d292bf6

Please sign in to comment.