bufferStatus

class bufferStatus : public kotekan::Stage

Exports buffer metrics and prints out buffer status.

Exports buffer size and current load (number of full buffers) for all buffers in the system, and prints this information to the logs and/or stdout depending on the system settings.

Note at the moment this class requires the global log_level to be set to INFO or highter for the buffer metrics to be output to the logs.

Metrics

  • kotekan_bufferstatus_full_frames_total The number of full frames for a given buffer

  • kotekan_bufferstatus_frames_total The total number of frames in a given buffer (buffer depth)

Author

Jacob Taylor, Andre Renard

Param time_delay:

Int. Microseconds, default 1000000 (1 second) The number of micro seconds between buffer print outs. Will not output more frequently than 100ms.

Param print_status:

Bool. Default true. If true buffer stats are send to the logs/stderr

Public Functions

bufferStatus(kotekan::Config &config, const std::string &unique_name, kotekan::bufferContainer &buffer_container)
virtual ~bufferStatus()
virtual void main_thread() override