| Index: src/arm64/instrument-arm64.cc
|
| diff --git a/src/arm64/instrument-arm64.cc b/src/arm64/instrument-arm64.cc
|
| index 631556f72411dcee8af869b23e94a7691889b56a..d3a2fee95ef56350105dd0a121720dfcc0ca8bcd 100644
|
| --- a/src/arm64/instrument-arm64.cc
|
| +++ b/src/arm64/instrument-arm64.cc
|
| @@ -107,8 +107,7 @@ Instrument::Instrument(const char* datafile, uint64_t sample_period)
|
| }
|
| }
|
|
|
| - static const int num_counters =
|
| - sizeof(kCounterList) / sizeof(CounterDescriptor);
|
| + static const int num_counters = ARRAY_SIZE(kCounterList);
|
|
|
| // Dump an instrumentation description comment at the top of the file.
|
| fprintf(output_stream_, "# counters=%d\n", num_counters);
|
|
|