We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5b3dd7 commit 822aec7Copy full SHA for 822aec7
profiling/energy-profiler/kp_energy_profiler.cpp
@@ -96,13 +96,6 @@ void end_region_with_id(uint64_t expected_id) {
96
auto& state = EnergyProfilerState::get_instance();
97
std::lock_guard<std::mutex> lock(state.get_mutex());
98
auto& active_regions = state.get_active_regions();
99
- if (active_regions.empty()) {
100
- std::cerr
101
- << "EnergyProfiler ERROR: Warning: Attempting to end region with ID "
102
- << std::to_string(expected_id) << " but no active regions found."
103
- << std::endl;
104
- return;
105
- }
106
auto it = std::find_if(active_regions.begin(), active_regions.end(),
107
[expected_id](const TimingInfo& region) {
108
return region.id == expected_id;
0 commit comments