NCBI C++ ToolKit
Macros | Functions | Variables
timing.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include "timing.hpp"
#include "pubseq_gateway_utils.hpp"
#include "pubseq_gateway.hpp"
#include "ipsgs_processor.hpp"
+ Include dependency graph for timing.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define TIMING_CLASS_DEF(class_name)
 

Functions

static string kTimeRangeStart ("TimeRangeStart")
 
static string kTimeRangeEnd ("TimeRangeEnd")
 
static string kBins ("Bins")
 
static string kStart ("Start")
 
static string kEnd ("End")
 
static string kCount ("Count")
 
static string kLowerAnomaly ("LowerAnomaly")
 
static string kUpperAnomaly ("UpperAnomaly")
 
static string kTotalCount ("TotalCount")
 
static string kValueSum ("ValueSum")
 
static string kName ("name")
 
static string kDescription ("description")
 
CJsonNode SerializeHistogram (const TOnePSGTiming &histogram, const string &name, const string &description)
 
static string kStartBlobSize ("MinBlobSize")
 
static string kEndBlobSize ("MaxBlobSize")
 
static string kSecondsCovered ("SecondsCovered")
 

Variables

const unsigned long kMaxBlobSize = 1024L*1024L*1024L*8L
 

Macro Definition Documentation

◆ TIMING_CLASS_DEF

#define TIMING_CLASS_DEF (   class_name)
Value:
class_name::class_name(unsigned long min_stat_value, \
unsigned long max_stat_value, \
unsigned long n_bins, \
bool & reset_to_default) \
{ \
reset_to_default = false; \
try { \
TOnePSGTiming model_histogram(min_stat_value, max_stat_value, \
n_bins, stat_type); \
m_PSGTiming.reset(new TPSGTiming(model_histogram)); \
} catch (...) { \
reset_to_default = true; \
TOnePSGTiming model_histogram(kMinStatValue, \
m_PSGTiming.reset(new TPSGTiming(model_histogram)); \
} \
}
EScaleType
Scale type.
@ eLog2
Binary logarithmic scale with a base 2.
const unsigned long kNStatBins
Definition: timing.hpp:52
const unsigned long kMinStatValue
Definition: timing.hpp:50
const unsigned long kMaxStatValue
Definition: timing.hpp:51
CHistogramTimeSeries< uint64_t, uint64_t, uint64_t > TPSGTiming
Definition: timing.hpp:117

Definition at line 203 of file timing.cpp.

Function Documentation

◆ kBins()

static string kBins ( "Bins"  )
static

◆ kCount()

static string kCount ( "Count"  )
static

◆ kDescription()

static string kDescription ( "description"  )
static

Referenced by SerializeHistogram().

◆ kEnd()

static string kEnd ( "End"  )
static

Referenced by SerializeHistogram().

◆ kEndBlobSize()

static string kEndBlobSize ( "MaxBlobSize"  )
static

◆ kLowerAnomaly()

static string kLowerAnomaly ( "LowerAnomaly"  )
static

Referenced by SerializeHistogram().

◆ kName()

static string kName ( "name"  )
static

Referenced by SerializeHistogram().

◆ kSecondsCovered()

static string kSecondsCovered ( "SecondsCovered"  )
static

◆ kStart()

static string kStart ( "Start"  )
static

◆ kStartBlobSize()

static string kStartBlobSize ( "MinBlobSize"  )
static

◆ kTimeRangeEnd()

static string kTimeRangeEnd ( "TimeRangeEnd"  )
static

◆ kTimeRangeStart()

static string kTimeRangeStart ( "TimeRangeStart"  )
static

◆ kTotalCount()

static string kTotalCount ( "TotalCount"  )
static

Referenced by SerializeHistogram().

◆ kUpperAnomaly()

static string kUpperAnomaly ( "UpperAnomaly"  )
static

Referenced by SerializeHistogram().

◆ kValueSum()

static string kValueSum ( "ValueSum"  )
static

Referenced by SerializeHistogram().

◆ SerializeHistogram()

CJsonNode SerializeHistogram ( const TOnePSGTiming histogram,
const string name,
const string description 
)

Variable Documentation

◆ kMaxBlobSize

const unsigned long kMaxBlobSize = 1024L*1024L*1024L*8L
Modified on Wed Feb 28 07:12:24 2024 by modify_doxy.py rev. 669887