Task #203

Investigate options for making logging synchronous instead of asynchronoous

Added by Espen Solbu about 6 years ago. Updated about 6 years ago.

Status:ClosedStart date:11/23/2011
Priority:NormalDue date:
Assignee:Espen Solbu% Done:

100%

Category:LoggerSpent time:-
Target version:1.1

Description

Issues with logging to CSV leads me to believe that asynchronous logging might not be good, as entries sometimes show up in incorrect order when run on the emulator. It might be that actual writing to file should be on an interval instead..

E.g.
  1. Add frames and values to a (large) FIFO buffer.
  2. In one cyclic writer thread, perform all file writing, # Write entire CSV FILO # Write entire Raw FILO # Write entire Human FILO # Clean FILO's
How to prevent race conditions?
  • Will this be an issue?
  • Perform Clone of FILO to writer thread?

Associated revisions

Revision 131
Added by Espen Solbu about 6 years ago

refs #142,#203 More work on CSV logging. Preparing to make it synchronous

Revision 132
Added by Espen Solbu about 6 years ago

refs #203 Testing Thread

Revision 135
Added by Espen Solbu about 6 years ago

closes #203 Logging should now work ok

History

#1 Updated by Espen Solbu about 6 years ago

There is a noticeable difference in performance and linearity of logged values depending on how many logging files are used

ASC (Human readable) is causing the longest delays.
Make sure heavy code is not run in UI thread..

#2 Updated by Espen Solbu about 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset r135.

#3 Updated by Espen Solbu about 6 years ago

  • Target version changed from 2.0 Multiple models to 1.1

Also available in: Atom PDF