Measure CPU for demodulator, read thread, and background tasks individually.
This commit is contained in:
parent
9deac8d894
commit
5b40377b98
5 changed files with 88 additions and 32 deletions
9
stats.h
9
stats.h
|
|
@ -63,10 +63,13 @@ struct stats {
|
|||
// Mode A/C demodulator counts:
|
||||
uint32_t demod_modeac;
|
||||
|
||||
// timing:
|
||||
uint32_t blocks_processed;
|
||||
uint32_t blocks_dropped;
|
||||
struct timespec cputime;
|
||||
|
||||
// timing:
|
||||
struct timespec demod_cpu;
|
||||
struct timespec reader_cpu;
|
||||
struct timespec background_cpu;
|
||||
|
||||
// noise floor:
|
||||
double noise_power_sum;
|
||||
|
|
@ -108,4 +111,6 @@ void add_stats(const struct stats *st1, const struct stats *st2, struct stats *t
|
|||
void display_stats(struct stats *st);
|
||||
void reset_stats(struct stats *st);
|
||||
|
||||
void add_timespecs(const struct timespec *x, const struct timespec *y, struct timespec *z);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue