Statistic.h
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2020 Intel Corporation. All Rights Reserved.
3 
4 #pragma once
5 
6 #include "time.h"
7 #include <chrono>
8 #include <map>
9 #include <queue>
10 
12 {
13 public:
14  std::queue<std::chrono::system_clock::time_point> m_clockBeginVec;
15  std::chrono::system_clock::time_point m_prevClockBegin, m_compressionBegin, m_decompressionBegin;
20 };
21 
22 class Statistic
23 {
24 public:
25  static std::map<int, StreamStatistic*>& getStatisticStreams() //todo:change to uid instead of type
26  {
27  static std::map<int, StreamStatistic*> m_streamStatistic;
28  return m_streamStatistic;
29  };
30 };
std::queue< std::chrono::system_clock::time_point > m_clockBeginVec
Definition: Statistic.h:14
int m_decompressionFrameCounter
Definition: Statistic.h:17
long long m_compressedSizeSum
Definition: Statistic.h:19
int m_compressionFrameCounter
Definition: Statistic.h:17
std::chrono::duration< double > m_decompressionTime
Definition: Statistic.h:16
static std::map< int, StreamStatistic * > & getStatisticStreams()
Definition: Statistic.h:25
long long m_decompressedSizeSum
Definition: Statistic.h:19
std::chrono::system_clock::time_point m_compressionBegin
Definition: Statistic.h:15
std::chrono::duration< double > m_compressionTime
Definition: Statistic.h:16
std::chrono::duration< double > m_getFrameDiffTime
Definition: Statistic.h:16
double m_avgDecompressionTime
Definition: Statistic.h:18
double m_avgProcessingTime
Definition: Statistic.h:18
std::chrono::duration< double > m_processingTime
Definition: Statistic.h:16
std::chrono::system_clock::time_point m_prevClockBegin
Definition: Statistic.h:15
int m_frameCounter
Definition: Statistic.h:17
double m_avgCompressionTime
Definition: Statistic.h:18
double m_avgGettingTime
Definition: Statistic.h:18
std::chrono::system_clock::time_point m_decompressionBegin
Definition: Statistic.h:15


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:10