Skip to content

Commit

Permalink
missing guard
Browse files Browse the repository at this point in the history
  • Loading branch information
gralkapk committed Jul 28, 2023
1 parent 61fa1e1 commit 9aecaa3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/services/power_service/Power_Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ void Power_Service::start_measurement() {
for (size_t i = 0; i < segment0_1.record_length(); ++i) {
out_file << sample_times_[i] << "," << segment0_1.begin()[i] << "," << segment0_2.begin()[i]
<< "," << segment0_3.begin()[i] << std::endl;
#ifdef MEGAMOL_USE_TRACY
tracy::Profiler::PlotData("V", segment0_1.begin()[i],
static_cast<double>(sample_times_[i] + trigger_offset_.count()) / timer_mul_);
tracy::Profiler::PlotData("A", segment0_2.begin()[i],
Expand All @@ -533,6 +534,7 @@ void Power_Service::start_measurement() {
static_cast<double>(sample_times_[i] + trigger_offset_.count()) / timer_mul_);
tracy::Profiler::PlotData("Frame", segment0_3.begin()[i],
static_cast<double>(sample_times_[i] + trigger_offset_.count()) / timer_mul_);
#endif
}
out_file.close();
} else {
Expand Down

0 comments on commit 9aecaa3

Please sign in to comment.