Class used by the threads to store info for generating performance statistics.
More...
#include <utilities.hpp>
Class used by the threads to store info for generating performance statistics.
◆ FrameStatistics()
| ccf::common::FrameStatistics::FrameStatistics |
( |
| ) |
|
◆ ~FrameStatistics()
| ccf::common::FrameStatistics::~FrameStatistics |
( |
| ) |
|
◆ GetDataSnapshot()
| void ccf::common::FrameStatistics::GetDataSnapshot |
( |
FrameStatistics & |
trg_obj | ) |
const |
Get a snapshot of the data in the object.
◆ GetFrameCount()
| uint64_t ccf::common::FrameStatistics::GetFrameCount |
( |
| ) |
const |
Get the number of frames handled.
◆ GetFrHandlingTimes()
| const std::vector< double > & ccf::common::FrameStatistics::GetFrHandlingTimes |
( |
| ) |
const |
Get vector with the timestamp for handling the frames.
◆ GetFrRecvFrCounts()
| const std::vector< uint64_t > & ccf::common::FrameStatistics::GetFrRecvFrCounts |
( |
| ) |
const |
Get the frame counts of each frame for which data is stored in the object.
◆ GetFrRecvTimestamps()
| const std::vector< double > & ccf::common::FrameStatistics::GetFrRecvTimestamps |
( |
| ) |
const |
Get a vector with the timestamps for receiving the frames.
◆ GetId()
| std::string ccf::common::FrameStatistics::GetId |
( |
| ) |
const |
Get the ID of the object.
◆ GetLastUpdate()
| double ccf::common::FrameStatistics::GetLastUpdate |
( |
| ) |
const |
Get the time for the last update of the samples.
◆ GetLostFrames()
| uint64_t ccf::common::FrameStatistics::GetLostFrames |
( |
| ) |
const |
Get the number of lost frames.
◆ GetNbOfSamples()
| uint16_t ccf::common::FrameStatistics::GetNbOfSamples |
( |
| ) |
const |
Get the number of samples used in the sliding window.
◆ GetSkippedFrames()
| uint64_t ccf::common::FrameStatistics::GetSkippedFrames |
( |
| ) |
const |
Get the number of skipped frames.
◆ GetStartTime()
| double ccf::common::FrameStatistics::GetStartTime |
( |
| ) |
const |
Get the start time for the recording.
◆ GetTimeFirstFrame()
| double ccf::common::FrameStatistics::GetTimeFirstFrame |
( |
| ) |
const |
Get the time stamp of the first frame status registered.
◆ GetVolume()
| uint64_t ccf::common::FrameStatistics::GetVolume |
( |
| ) |
const |
Get the volume (in bytes) of the frames handled.
◆ IncSkippedFramesCounter()
| uint64_t ccf::common::FrameStatistics::IncSkippedFramesCounter |
( |
| ) |
|
Increment the frames handled counter.
◆ operator=()
◆ Reset()
| void ccf::common::FrameStatistics::Reset |
( |
| ) |
|
Reset the frame statistics object.
◆ SetLostFramesCounter()
| void ccf::common::FrameStatistics::SetLostFramesCounter |
( |
const uint64_t |
lost_frames | ) |
|
Set the lost frames counter.
◆ SetNbOfSamples()
| void ccf::common::FrameStatistics::SetNbOfSamples |
( |
const uint16_t |
nb | ) |
|
Set the number of samples to keep in the sliding window.
◆ ToString()
| std::string ccf::common::FrameStatistics::ToString |
( |
| ) |
const |
Generate a string summery of the contents of the object.
◆ Update()
| void ccf::common::FrameStatistics::Update |
( |
const double |
fr_recv_timestamp, |
|
|
const double |
fr_handling_time, |
|
|
const uint32_t |
fr_size |
|
) |
| |
Update the frame handling status with the reception time for the frame, the time it took to handle the frame and the size of the frame.
◆ p_first_recv_time
| double ccf::common::FrameStatistics::p_first_recv_time |
|
protected |
◆ p_fr_handling_times
| std::vector<double> ccf::common::FrameStatistics::p_fr_handling_times |
|
protected |
◆ p_fr_recv_fr_counts
| std::vector<uint64_t> ccf::common::FrameStatistics::p_fr_recv_fr_counts |
|
protected |
◆ p_fr_recv_timestamps
| std::vector<double> ccf::common::FrameStatistics::p_fr_recv_timestamps |
|
protected |
◆ p_frame_count
| uint64_t ccf::common::FrameStatistics::p_frame_count |
|
protected |
◆ p_id
| std::string ccf::common::FrameStatistics::p_id |
|
protected |
◆ p_last_update
| double ccf::common::FrameStatistics::p_last_update |
|
protected |
◆ p_lost_frames
| uint64_t ccf::common::FrameStatistics::p_lost_frames |
|
protected |
◆ p_nb_samples
| uint16_t ccf::common::FrameStatistics::p_nb_samples |
|
protected |
◆ p_skipped_frames
| uint64_t ccf::common::FrameStatistics::p_skipped_frames |
|
protected |
◆ p_start_time
| double ccf::common::FrameStatistics::p_start_time |
|
protected |
◆ p_volume
| uint64_t ccf::common::FrameStatistics::p_volume |
|
protected |
The documentation for this class was generated from the following files: