Measure CPU for demodulator, read thread, and background tasks individually.

This commit is contained in:
Oliver Jowett 2015-01-23 01:22:22 +00:00
parent 9deac8d894
commit 5b40377b98
5 changed files with 88 additions and 32 deletions

View file

@ -289,6 +289,7 @@ struct { // Internal state
int iDataOut; // Fifo output pointer
int iDataReady; // Fifo content count
int iDataLost; // Count of missed buffers
struct timespec reader_cpu_accumulator; // CPU time used by the reader thread, copied out and reset by the main thread under the mutex
int trailing_samples;// extra trailing samples in magnitude buffer