Skip to content

Commit 10d0f39

Browse files
Merge pull request #14 from ARM-software/android-bugfix
Initialize PmuCounter explicitly
2 parents 4d9747b + e662e55 commit 10d0f39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vendor/arm/pmu/pmu_profiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ PmuProfiler::PmuProfiler(const CpuCounterSet &enabled_counters) :
4848
{
4949
try
5050
{
51-
auto pmu_counter = pmu_counters_.emplace(counter, pmu_config->second);
51+
auto pmu_counter = pmu_counters_.emplace(counter, PmuCounter{pmu_config->second});
5252
pmu_counters_[counter].get_value<double>();
5353

5454
// PMU counter is created and can retrieve values

0 commit comments

Comments
 (0)