GNU Radio 3.6.5 C++ API
|
throughput measurement More...
#include <probe_rate.h>
Public Types | |
typedef boost::shared_ptr < probe_rate > | sptr |
Public Member Functions | |
virtual void | set_alpha (double alpha)=0 |
virtual double | rate ()=0 |
virtual bool | start ()=0 |
Called to enable drivers, etc for i/o devices. | |
virtual bool | stop ()=0 |
Called to disable drivers, etc for i/o devices. | |
Static Public Member Functions | |
static sptr | make (size_t itemsize, double update_rate_ms=500.0, double alpha=0.0001) |
Make a throughput measurement block. |
throughput measurement
static sptr gr::blocks::probe_rate::make | ( | size_t | itemsize, |
double | update_rate_ms = 500.0 , |
||
double | alpha = 0.0001 |
||
) | [static] |
Make a throughput measurement block.
itemsize | size of each stream item |
update_rate_ms | minimum update time in milliseconds |
alpha | gain for running average filter |
virtual double gr::blocks::probe_rate::rate | ( | ) | [pure virtual] |
Implemented in gr::blocks::probe_rate_impl.
virtual void gr::blocks::probe_rate::set_alpha | ( | double | alpha | ) | [pure virtual] |
Implemented in gr::blocks::probe_rate_impl.
virtual bool gr::blocks::probe_rate::start | ( | ) | [pure virtual] |
Called to enable drivers, etc for i/o devices.
This allows a block to enable an associated driver to begin transfering data just before we start to execute the scheduler. The end result is that this reduces latency in the pipeline when dealing with audio devices, usrps, etc.
Reimplemented from gr_block.
Implemented in gr::blocks::probe_rate_impl.
virtual bool gr::blocks::probe_rate::stop | ( | ) | [pure virtual] |
Called to disable drivers, etc for i/o devices.
Reimplemented from gr_block.
Implemented in gr::blocks::probe_rate_impl.