Skip to content

Commit

Permalink
output frame spikes to tracy as well
Browse files Browse the repository at this point in the history
  • Loading branch information
gralkapk committed Jul 14, 2023
1 parent 178aec9 commit 7c5d88d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/services/power_service/Power_Service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ bool Power_Service::init(void* configPtr) {
TracyPlotConfig("V", tracy::PlotFormatType::Number, false, true, 0);
TracyPlotConfig("A", tracy::PlotFormatType::Number, false, true, 0);
TracyPlotConfig("W", tracy::PlotFormatType::Number, false, true, 0);
TracyPlotConfig("Frame", tracy::PlotFormatType::Number, false, true, 0);
#endif

//return init(*static_cast<Config*>(configPtr));
Expand Down Expand Up @@ -427,6 +428,8 @@ void Power_Service::start_measurement() {
static_cast<double>(sample_times_[i] + trigger_offset_.count()) / timer_mul_);
tracy::Profiler::PlotData("W", segment0_1.begin()[i] * segment0_2.begin()[i],
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_);
}
out_file.close();

Expand Down

0 comments on commit 7c5d88d

Please sign in to comment.