AP_Logger: removed perf counters
This commit is contained in:
parent
dfc4b37df1
commit
50e7c81f46
@ -565,7 +565,6 @@ bool AP_Logger_MAVLink::send_log_block(struct dm_block &block)
|
||||
#endif
|
||||
|
||||
// DM_packing: 267039 events, 0 overruns, 8440834us elapsed, 31us avg, min 31us max 32us 0.488us rms
|
||||
hal.util->perf_begin(_perf_packing);
|
||||
|
||||
mavlink_message_t msg;
|
||||
mavlink_status_t *chan_status = mavlink_get_channel_status(_link->get_chan());
|
||||
@ -580,8 +579,6 @@ bool AP_Logger_MAVLink::send_log_block(struct dm_block &block)
|
||||
block.seqno,
|
||||
block.buf);
|
||||
|
||||
hal.util->perf_end(_perf_packing);
|
||||
|
||||
#if DF_MAVLINK_DISABLE_INTERRUPTS
|
||||
hal.scheduler->restore_interrupts(istate);
|
||||
#endif
|
||||
|
@ -22,7 +22,6 @@ public:
|
||||
AP_Logger_MAVLink(AP_Logger &front, LoggerMessageWriter_DFLogStart *writer) :
|
||||
AP_Logger_Backend(front, writer),
|
||||
_max_blocks_per_send_blocks(8)
|
||||
,_perf_packing(hal.util->perf_alloc(AP_HAL::Util::PC_ELAPSED, "DM_packing"))
|
||||
{
|
||||
_blockcount = 1024*((uint8_t)_front._params.mav_bufsize) / sizeof(struct dm_block);
|
||||
// ::fprintf(stderr, "DM: Using %u blocks\n", _blockcount);
|
||||
@ -170,10 +169,6 @@ private:
|
||||
void start_new_log(void) override {
|
||||
return;
|
||||
}
|
||||
// performance counters
|
||||
AP_HAL::Util::perf_counter_t _perf_errors;
|
||||
AP_HAL::Util::perf_counter_t _perf_packing;
|
||||
AP_HAL::Util::perf_counter_t _perf_overruns;
|
||||
|
||||
HAL_Semaphore semaphore;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user