Skip to content

Commit

Permalink
#2380: metrics: Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrepebay committed Jan 15, 2025
1 parent b533dda commit 638b412
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/vt/metrics/perf_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ PerfData::PerfData()
}
}

for (const auto &event_name : event_names_) {
for (auto const& event_name : event_names_) {
if (event_map_.find(event_name) == event_map_.end()) {
cleanupBeforeAbort();
vtAbort("Event name isn't in known perf events map: " + event_name);
}
}

// Initialize perf events once and store file descriptors
for (const auto &event_name : event_names_) {
for (auto const& event_name : event_names_) {
struct perf_event_attr pe = {};
pe.type = event_map_.at(event_name).first;
pe.size = sizeof(struct perf_event_attr);
Expand Down
2 changes: 1 addition & 1 deletion src/vt/metrics/perf_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ struct PerfData: runtime::component::Component<PerfData>
* Cleans up resources, closing file descriptors associated with performance
* counters.
*/
~PerfData();
virtual ~PerfData();

/**
* \brief Start performance measurement for a task
Expand Down

0 comments on commit 638b412

Please sign in to comment.