mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-16 07:50:34 +08:00
perf counter cleanup (mostly intervals)
Some of these perf counters were useful during initial development, but realistically aren't needed anymore, some are redundant when we can now see the average interval from `work_queue status` and some of them simply aren't worth the cost at higher rates.
This commit is contained in:
@@ -195,7 +195,6 @@ private:
|
||||
WeatherVane *_wv_controller{nullptr};
|
||||
|
||||
perf_counter_t _cycle_perf;
|
||||
perf_counter_t _interval_perf;
|
||||
|
||||
/**
|
||||
* Update our local parameter cache.
|
||||
@@ -289,8 +288,7 @@ MulticopterPositionControl::MulticopterPositionControl() :
|
||||
_vel_y_deriv(this, "VELD"),
|
||||
_vel_z_deriv(this, "VELD"),
|
||||
_control(this),
|
||||
_cycle_perf(perf_alloc_once(PC_ELAPSED, MODULE_NAME": cycle time")),
|
||||
_interval_perf(perf_alloc_once(PC_INTERVAL, MODULE_NAME": interval"))
|
||||
_cycle_perf(perf_alloc_once(PC_ELAPSED, MODULE_NAME": cycle time"))
|
||||
{
|
||||
// fetch initial parameter values
|
||||
parameters_update(true);
|
||||
@@ -306,7 +304,6 @@ MulticopterPositionControl::~MulticopterPositionControl()
|
||||
}
|
||||
|
||||
perf_free(_cycle_perf);
|
||||
perf_free(_interval_perf);
|
||||
}
|
||||
|
||||
bool
|
||||
@@ -515,7 +512,6 @@ MulticopterPositionControl::print_status()
|
||||
}
|
||||
|
||||
perf_print_counter(_cycle_perf);
|
||||
perf_print_counter(_interval_perf);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -530,7 +526,6 @@ MulticopterPositionControl::Run()
|
||||
}
|
||||
|
||||
perf_begin(_cycle_perf);
|
||||
perf_count(_interval_perf);
|
||||
|
||||
if (_local_pos_sub.update(&_local_pos)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user