CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
jsoncollector::FastMonitor Class Reference

#include <FastMonitor.h>

Public Member Functions

void addFastPathDefinition (std::string const &defPathFast, std::string const defGroupFast, bool strict)
 
void commit (std::vector< unsigned int > *streamLumisPtr)
 
void discardCollected (unsigned int forLumi)
 
 FastMonitor (std::string const &defPath, std::string const defGroup, bool strictChecking, bool useSource=true, bool useDefinition=true)
 
 FastMonitor (DataPointDefinition const *dpd, bool strictChecking, bool useSource=true, bool useDefinition=true)
 
std::string getCSVString (int sid=-1)
 
void getHostAndPID (std::string &sHPid)
 
JsonMonitorablegetMergedIntJForLumi (std::string const &name, unsigned int forLumi)
 
void outputCSV (std::string const &path, std::string const &csvString)
 
bool outputFullJSON (std::string const &path, unsigned int lumi, bool output=true)
 
bool outputFullJSONs (std::string const &pathstem, std::string const &ext, unsigned int lumi, bool output=true)
 
void registerFastGlobalMonitorable (JsonMonitorable *newMonitorable)
 
void registerGlobalMonitorable (JsonMonitorable *newMonitorable, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
 
void registerStreamMonitorableUIntVec (std::string const &name, std::vector< unsigned int > *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
 
void registerStreamMonitorableUIntVecAtomic (std::string const &name, std::vector< AtomicMonUInt * > *inputs, bool NAifZeroUpdates, unsigned int *nBins=nullptr)
 
void setDefPath (std::string const &dpath)
 
void setNStreams (unsigned int nStreams)
 
void snap (unsigned int ls)
 
void snapGlobal (unsigned int ls)
 
void snapStreamAtomic (unsigned int ls, unsigned int streamID)
 
virtual ~FastMonitor ()
 

Private Attributes

std::vector< DataPoint * > dataPoints_
 
std::vector< DataPoint * > dataPointsFastOnly_
 
std::string defPath_
 
std::string defPathFast_
 
bool deleteDef_ = false
 
bool deleteDefFast_ = false
 
DataPointDefinition const * dpd_
 
DataPointDefinition const * dpdFast_
 
std::map< std::string,
unsigned int > 
dpNameMap_
 
bool fastPathStrictChecking_
 
unsigned int fregDpCount_ = 0
 
bool haveFastPath_ = false
 
std::vector< unsigned int > jsonDpIndex_
 
std::vector< DataPoint * > jsonDpIndexFast_
 
unsigned int nStreams_
 
std::vector< DataPoint * > orphanedDps_
 
unsigned int recentSnaps_ = 0
 
unsigned int recentSnapsTimer_ = 0
 
unsigned int regDpCount_ = 0
 
std::string sourceInfo_
 
bool strictChecking_
 
std::unordered_set< std::string > uids_
 
bool useDefinition_
 
bool useSource_
 

Detailed Description

Definition at line 19 of file FastMonitor.h.

Constructor & Destructor Documentation

FastMonitor::FastMonitor ( std::string const &  defPath,
std::string const  defGroup,
bool  strictChecking,
bool  useSource = true,
bool  useDefinition = true 
)

Definition at line 22 of file FastMonitor.cc.

References defPath_, dpd_, jsoncollector::DataPointDefinition::getDataPointDefinitionFor(), getHostAndPID(), sourceInfo_, and groupFilesInBlocks::temp.

24  : defPath_(defPath),
25  strictChecking_(strictChecking),
26  useSource_(useSource),
27  useDefinition_(useDefinition),
28  nStreams_(1),
29  deleteDef_(true) {
30  //get host and PID info
31  if (useSource)
33 
34  //load definition file
35  auto temp = new DataPointDefinition();
37  dpd_ = temp;
38 }
DataPointDefinition const * dpd_
Definition: FastMonitor.h:107
static bool getDataPointDefinitionFor(std::string &defFilePath, DataPointDefinition *dpd, const std::string *defaultGroup=nullptr)
void getHostAndPID(std::string &sHPid)
Definition: FastMonitor.cc:291
FastMonitor::FastMonitor ( DataPointDefinition const *  dpd,
bool  strictChecking,
bool  useSource = true,
bool  useDefinition = true 
)

Definition at line 40 of file FastMonitor.cc.

References getHostAndPID(), and sourceInfo_.

41  : strictChecking_(strictChecking), useSource_(useSource), useDefinition_(useDefinition), nStreams_(1), dpd_(dpd) {
42  //get host and PID info
43  if (useSource)
45 }
DataPointDefinition const * dpd_
Definition: FastMonitor.h:107
void getHostAndPID(std::string &sHPid)
Definition: FastMonitor.cc:291
FastMonitor::~FastMonitor ( )
virtual

Definition at line 47 of file FastMonitor.cc.

References dataPoints_, deleteDef_, deleteDefFast_, dpd_, and dpdFast_.

47  {
48  for (auto dp : dataPoints_)
49  delete dp;
50  if (deleteDef_)
51  delete dpd_;
52  if (deleteDefFast_)
53  delete dpdFast_;
54 }
DataPointDefinition const * dpd_
Definition: FastMonitor.h:107
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
DataPointDefinition const * dpdFast_
Definition: FastMonitor.h:108

Member Function Documentation

void FastMonitor::addFastPathDefinition ( std::string const &  defPathFast,
std::string const  defGroupFast,
bool  strict 
)
void FastMonitor::commit ( std::vector< unsigned int > *  streamLumisPtr)

Definition at line 116 of file FastMonitor.cc.

References cms::cuda::assert(), dataPoints_, dataPointsFastOnly_, defPath_, defPathFast_, dpd_, dpdFast_, fastPathStrictChecking_, fregDpCount_, getName(), jsoncollector::DataPointDefinition::getNames(), jsoncollector::DataPointDefinition::getOperationFor(), haveFastPath_, mps_fire::i, dqmiolumiharvest::j, jsonDpIndex_, jsonDpIndexFast_, regDpCount_, sourceInfo_, strictChecking_, and jsoncollector::DataPoint::trackDummy().

Referenced by RawEventFileWriterForBU::RawEventFileWriterForBU(), and evf::FastMonitoringThread::MonitorData::registerVariables().

116  {
117  std::vector<std::string> const& jsonNames = dpd_->getNames();
118  regDpCount_ = dataPoints_.size();
119  if (strictChecking_)
120  assert(jsonNames.size() == regDpCount_);
121 
122  std::map<unsigned int, bool> hasJson;
123  for (unsigned int i = 0; i < jsonNames.size(); i++) {
124  bool notFoundVar = true;
125  for (unsigned int j = 0; j < regDpCount_; j++) {
126  if (dataPoints_[j]->getName() == jsonNames[i]) {
127  dataPoints_[j]->setOperation(dpd_->getOperationFor(i));
128  jsonDpIndex_.push_back(j);
129  hasJson[j] = true;
130  notFoundVar = false;
131  break;
132  }
133  }
134  if (notFoundVar) {
136  //push dummy DP if not registered by the service so that we output required JSON/CSV
137  DataPoint* dummyDp = new DataPoint(sourceInfo_, defPath_);
138  dummyDp->trackDummy(jsonNames[i], true);
139  dataPoints_.push_back(dummyDp);
140  jsonDpIndex_.push_back(dataPoints_.size() - 1);
141  }
142  }
143  for (unsigned int i = 0; i < regDpCount_; i++) {
144  dataPoints_[i]->setStreamLumiPtr(streamLumisPtr);
145  }
146 
147  //fast path:
148  if (haveFastPath_) {
149  std::vector<std::string> const& fjsonNames = dpdFast_->getNames();
151  assert(!(fastPathStrictChecking_ && fjsonNames.size() == fregDpCount_));
152  std::map<unsigned int, bool> fhasJson;
153  for (unsigned int i = 0; i < fjsonNames.size(); i++) {
154  bool notFoundVar = true;
155  for (unsigned int j = 0; j < fregDpCount_; j++) {
156  if (dataPointsFastOnly_[j]->getName() == fjsonNames[i]) {
158  fhasJson[j] = true;
159  notFoundVar = false;
160  break;
161  }
162  }
163  if (notFoundVar) {
164  //try to find variable among slow variables
165 
166  bool notFoundVarSlow = true;
167  for (unsigned int j = 0; j < regDpCount_; j++) {
168  if (dataPoints_[j]->getName() == fjsonNames[i]) {
169  jsonDpIndexFast_.push_back(dataPoints_[j]);
170  //fhasJson[j]=true;
171  notFoundVarSlow = false;
172  break;
173  }
174  }
175 
176  assert(!(fastPathStrictChecking_ && !notFoundVarSlow));
177  //push dummy DP if not registered by the service so that we output required JSON/CSV
178  if (notFoundVarSlow) {
179  DataPoint* dummyDp = new DataPoint(sourceInfo_, defPathFast_);
180  dummyDp->trackDummy(fjsonNames[i], true);
181  dataPointsFastOnly_.push_back(dummyDp);
182  jsonDpIndexFast_.push_back(dummyDp);
183  }
184  }
185  }
186  }
187 }
DataPointDefinition const * dpd_
Definition: FastMonitor.h:107
void trackDummy(std::string const &name, bool setNAifZeroUpdates)
Definition: DataPoint.h:82
std::vector< DataPoint * > dataPointsFastOnly_
Definition: FastMonitor.h:113
assert(be >=bs)
std::vector< std::string > const & getNames() const
std::vector< unsigned int > jsonDpIndex_
Definition: FastMonitor.h:114
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
TString getName(TString structure, int layer, TString geometry)
Definition: DMRtrends.cc:236
OperationType getOperationFor(unsigned int index) const
std::vector< DataPoint * > jsonDpIndexFast_
Definition: FastMonitor.h:115
DataPointDefinition const * dpdFast_
Definition: FastMonitor.h:108
void FastMonitor::discardCollected ( unsigned int  forLumi)

Definition at line 286 of file FastMonitor.cc.

References dataPoints_.

Referenced by RawEventFileWriterForBU::endOfLS(), and RawEventFileWriterForBU::finishFileWrite().

286  {
287  for (auto dp : dataPoints_)
288  dp->discardCollected(forLumi);
289 }
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
std::string FastMonitor::getCSVString ( int  sid = -1)

Definition at line 214 of file FastMonitor.cc.

References dqmiolumiharvest::j, jsonDpIndexFast_, and contentValuesCheck::ss.

214  {
215  //output what was specified in JSON in the same order (including dummies)
216  unsigned int monSize = jsonDpIndexFast_.size();
217  std::stringstream ss;
218  if (monSize) {
219  for (unsigned int j = 0; j < monSize; j++) {
220  ss << jsonDpIndexFast_[j]->fastOutCSV(sid);
221  if (j < monSize - 1)
222  ss << ",";
223  }
224  }
225  return ss.str();
226 }
std::vector< DataPoint * > jsonDpIndexFast_
Definition: FastMonitor.h:115
void FastMonitor::getHostAndPID ( std::string &  sHPid)

Definition at line 291 of file FastMonitor.cc.

Referenced by FastMonitor().

291  {
292  std::stringstream hpid;
293  int pid = (int)getpid();
294  char hostname[128];
295  gethostname(hostname, sizeof hostname);
296  hpid << hostname << "_" << pid;
297  sHPid = hpid.str();
298 }
JsonMonitorable * FastMonitor::getMergedIntJForLumi ( std::string const &  name,
unsigned int  forLumi 
)

Definition at line 237 of file FastMonitor.cc.

References cms::cuda::assert(), dataPoints_, and dpNameMap_.

237  {
238  auto it = dpNameMap_.find(name);
239  assert(it != dpNameMap_.end());
240  return dataPoints_[it->second]->mergeAndRetrieveValue(forLumi);
241 }
assert(be >=bs)
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
std::map< std::string, unsigned int > dpNameMap_
Definition: FastMonitor.h:117
void FastMonitor::outputCSV ( std::string const &  path,
std::string const &  csvString 
)

Definition at line 228 of file FastMonitor.cc.

References defPathFast_, submitPVResolutionJobs::out, download_sqlite_cfg::outputFile, and pileupReCalc_HLTpaths::trunc.

228  {
229  std::ofstream outputFile;
230  outputFile.open(path.c_str(), std::fstream::out | std::fstream::trunc);
231  outputFile << defPathFast_ << std::endl;
232  outputFile << csvString << std::endl;
233  outputFile.close();
234 }
bool FastMonitor::outputFullJSON ( std::string const &  path,
unsigned int  lumi,
bool  output = true 
)

Definition at line 268 of file FastMonitor.cc.

References dataPoints_, dqmiolumiharvest::j, jsonDpIndex_, LogDebug, recentSnaps_, recentSnapsTimer_, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, Json::StyledWriter::write(), and jsoncollector::FileIO::writeStringToFile().

Referenced by RawEventFileWriterForBU::endOfLS(), RawEventFileWriterForBU::finishFileWrite(), and RawEventFileWriterForBU::stop().

268  {
269  LogDebug("FastMonitor") << "SNAP updates -: " << recentSnaps_ << " (by timer: " << recentSnapsTimer_
270  << ") in lumisection ";
271 
272  recentSnaps_ = recentSnapsTimer_ = 0;
273  Json::Value serializeRoot;
274  for (unsigned int j = 0; j < jsonDpIndex_.size(); j++) {
275  dataPoints_[jsonDpIndex_[j]]->mergeAndSerialize(serializeRoot, lumi, j == 0, -1);
276  }
277  if (!output)
278  return false;
279 
280  Json::StyledWriter writer;
281  std::string&& result = writer.write(serializeRoot);
283  return true;
284 }
Represents a JSON value.
Definition: value.h:99
std::vector< unsigned int > jsonDpIndex_
Definition: FastMonitor.h:114
tuple result
Definition: mps_fire.py:311
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
list lumi
Definition: dqmdumpme.py:53
static void writeStringToFile(std::string const &filename, std::string &content)
Definition: FileIO.cc:21
std::string write(const Value &root) override
Serialize a Value in JSON format.
unsigned int recentSnapsTimer_
Definition: FastMonitor.h:120
Writes a Value in JSON format in a human friendly way.
Definition: writer.h:63
#define LogDebug(id)
bool FastMonitor::outputFullJSONs ( std::string const &  pathstem,
std::string const &  ext,
unsigned int  lumi,
bool  output = true 
)

Definition at line 243 of file FastMonitor.cc.

References dataPoints_, mps_fire::i, dqmiolumiharvest::j, jsonDpIndex_, LogDebug, nStreams_, convertSQLitetoXML_cfg::output, fed_dqm_sourceclient-live_cfg::path, recentSnaps_, recentSnapsTimer_, mps_fire::result, AlCaHLTBitMon_QueryRunRegistry::string, Json::StyledWriter::write(), and jsoncollector::FileIO::writeStringToFile().

243  {
244  LogDebug("FastMonitor") << "SNAP updates -: " << recentSnaps_ << " (by timer: " << recentSnapsTimer_
245  << ") in lumisection ";
246 
247  recentSnaps_ = recentSnapsTimer_ = 0;
248  for (unsigned int i = 0; i < nStreams_; i++) {
249  //merge even if no output
250  Json::Value serializeRoot;
251  for (unsigned int j = 0; j < jsonDpIndex_.size(); j++) {
252  dataPoints_[jsonDpIndex_[j]]->mergeAndSerialize(serializeRoot, lumi, true, i);
253  }
254  if (!output)
255  continue;
256  //get extension
257  std::stringstream tidext;
258  tidext << "_tid" << i;
259  std::string path = pathstem + tidext.str() + ext;
260 
261  Json::StyledWriter writer;
262  std::string&& result = writer.write(serializeRoot);
263  FileIO::writeStringToFile(path, result);
264  }
265  return output;
266 }
Represents a JSON value.
Definition: value.h:99
std::vector< unsigned int > jsonDpIndex_
Definition: FastMonitor.h:114
tuple result
Definition: mps_fire.py:311
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
list lumi
Definition: dqmdumpme.py:53
static void writeStringToFile(std::string const &filename, std::string &content)
Definition: FileIO.cc:21
std::string write(const Value &root) override
Serialize a Value in JSON format.
unsigned int recentSnapsTimer_
Definition: FastMonitor.h:120
Writes a Value in JSON format in a human friendly way.
Definition: writer.h:63
#define LogDebug(id)
void FastMonitor::registerFastGlobalMonitorable ( JsonMonitorable newMonitorable)

Definition at line 81 of file FastMonitor.cc.

References dataPointsFastOnly_, defPathFast_, sourceInfo_, and jsoncollector::DataPoint::trackMonitorable().

Referenced by evf::FastMonitoringThread::MonitorData::registerVariables().

81  {
82  DataPoint* dp = new DataPoint(sourceInfo_, defPathFast_, true);
83  dp->trackMonitorable(newMonitorable, false);
84  dataPointsFastOnly_.push_back(dp);
85 }
std::vector< DataPoint * > dataPointsFastOnly_
Definition: FastMonitor.h:113
void trackMonitorable(JsonMonitorable const *monitorable, bool NAifZeroUpdates)
Definition: DataPoint.cc:69
void FastMonitor::registerGlobalMonitorable ( JsonMonitorable newMonitorable,
bool  NAifZeroUpdates,
unsigned int *  nBins = nullptr 
)

Definition at line 67 of file FastMonitor.cc.

References cms::cuda::assert(), dataPoints_, defPath_, dpNameMap_, jsoncollector::JsonMonitorable::getName(), edm::second(), jsoncollector::DataPoint::setNBins(), sourceInfo_, jsoncollector::DataPoint::trackMonitorable(), and uids_.

Referenced by RawEventFileWriterForBU::RawEventFileWriterForBU(), and evf::FastMonitoringThread::MonitorData::registerVariables().

69  {
71  dp->trackMonitorable(newMonitorable, NAifZeroUpdates);
72  dp->setNBins(nBins);
73  dataPoints_.push_back(dp);
74  dpNameMap_[newMonitorable->getName()] = dataPoints_.size() - 1;
75 
76  //checks if the same name is registered twice
77  assert(uids_.insert(newMonitorable->getName()).second);
78 }
void setNBins(unsigned int *nBins)
Definition: DataPoint.h:109
assert(be >=bs)
void trackMonitorable(JsonMonitorable const *monitorable, bool NAifZeroUpdates)
Definition: DataPoint.cc:69
U second(std::pair< T, U > const &p)
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
std::map< std::string, unsigned int > dpNameMap_
Definition: FastMonitor.h:117
virtual std::string const & getName() const
std::unordered_set< std::string > uids_
Definition: FastMonitor.h:124
void FastMonitor::registerStreamMonitorableUIntVec ( std::string const &  name,
std::vector< unsigned int > *  inputs,
bool  NAifZeroUpdates,
unsigned int *  nBins = nullptr 
)

Definition at line 88 of file FastMonitor.cc.

References cms::cuda::assert(), dataPoints_, defPath_, dpNameMap_, mergeVDriftHistosByStation::name, jsoncollector::DataPoint::setNBins(), sourceInfo_, jsoncollector::DataPoint::trackVectorUInt(), and uids_.

Referenced by evf::FastMonitoringThread::MonitorData::registerVariables().

91  {
93  dp->trackVectorUInt(name, inputs, NAifZeroUpdates);
94  dp->setNBins(nBins);
95  dataPoints_.push_back(dp);
96  dpNameMap_[name] = dataPoints_.size() - 1;
97  assert(uids_.insert(name).second);
98 }
void setNBins(unsigned int *nBins)
Definition: DataPoint.h:109
assert(be >=bs)
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
std::map< std::string, unsigned int > dpNameMap_
Definition: FastMonitor.h:117
std::unordered_set< std::string > uids_
Definition: FastMonitor.h:124
void trackVectorUInt(std::string const &name, std::vector< unsigned int > const *monvec, bool NAifZeroUpdates)
Definition: DataPoint.cc:83
void FastMonitor::registerStreamMonitorableUIntVecAtomic ( std::string const &  name,
std::vector< AtomicMonUInt * > *  inputs,
bool  NAifZeroUpdates,
unsigned int *  nBins = nullptr 
)

Definition at line 101 of file FastMonitor.cc.

References cms::cuda::assert(), dataPoints_, defPath_, dpNameMap_, mergeVDriftHistosByStation::name, jsoncollector::DataPoint::setNBins(), sourceInfo_, AlCaHLTBitMon_QueryRunRegistry::string, jsoncollector::DataPoint::trackVectorUIntAtomic(), uids_, and useDefinition_.

Referenced by evf::FastMonitoringThread::MonitorData::registerVariables().

104  {
105  std::string definitionToPass;
106  if (useDefinition_)
107  definitionToPass = defPath_;
108  DataPoint* dp = new DataPoint(definitionToPass, sourceInfo_);
109  dp->trackVectorUIntAtomic(name, inputs, NAifZeroUpdates);
110  dp->setNBins(nBins);
111  dataPoints_.push_back(dp);
112  dpNameMap_[name] = dataPoints_.size() - 1;
113  assert(uids_.insert(name).second);
114 }
void setNBins(unsigned int *nBins)
Definition: DataPoint.h:109
assert(be >=bs)
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
std::map< std::string, unsigned int > dpNameMap_
Definition: FastMonitor.h:117
std::unordered_set< std::string > uids_
Definition: FastMonitor.h:124
void trackVectorUIntAtomic(std::string const &name, std::vector< AtomicMonUInt * > const *monvec, bool NAifZeroUpdates)
Definition: DataPoint.cc:94
void jsoncollector::FastMonitor::setDefPath ( std::string const &  dpath)
inline

Definition at line 32 of file FastMonitor.h.

References dataPoints_, and defPath_.

Referenced by RawEventFileWriterForBU::writeJsds().

32  {
33  defPath_ = dpath;
34  for (auto dp : dataPoints_)
35  dp->updateDefinition(dpath);
36  }
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
void jsoncollector::FastMonitor::setNStreams ( unsigned int  nStreams)
inline

Definition at line 38 of file FastMonitor.h.

References nStreams_.

38 { nStreams_ = nStreams; }
void FastMonitor::snap ( unsigned int  ls)

Definition at line 190 of file FastMonitor.cc.

References dataPoints_, mps_fire::i, recentSnaps_, recentSnapsTimer_, and regDpCount_.

Referenced by RawEventFileWriterForBU::endOfLS(), RawEventFileWriterForBU::finishFileWrite(), and RawEventFileWriterForBU::stop().

190  {
191  recentSnaps_++;
193  for (unsigned int i = 0; i < regDpCount_; i++) {
194  dataPoints_[i]->snap(ls);
195  }
196 }
def ls
Definition: eostools.py:349
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
unsigned int recentSnapsTimer_
Definition: FastMonitor.h:120
void FastMonitor::snapGlobal ( unsigned int  ls)

Definition at line 199 of file FastMonitor.cc.

References dataPoints_, mps_fire::i, recentSnaps_, and regDpCount_.

199  {
200  recentSnaps_++;
201  for (unsigned int i = 0; i < regDpCount_; i++) {
202  dataPoints_[i]->snapGlobal(ls);
203  }
204 }
def ls
Definition: eostools.py:349
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112
void FastMonitor::snapStreamAtomic ( unsigned int  ls,
unsigned int  streamID 
)

Definition at line 207 of file FastMonitor.cc.

References dataPoints_, mps_fire::i, recentSnaps_, and regDpCount_.

207  {
208  recentSnaps_++;
209  for (unsigned int i = 0; i < regDpCount_; i++) {
210  dataPoints_[i]->snapStreamAtomic(ls, streamID);
211  }
212 }
def ls
Definition: eostools.py:349
std::vector< DataPoint * > dataPoints_
Definition: FastMonitor.h:112

Member Data Documentation

std::vector<DataPoint*> jsoncollector::FastMonitor::dataPoints_
private
std::vector<DataPoint*> jsoncollector::FastMonitor::dataPointsFastOnly_
private

Definition at line 113 of file FastMonitor.h.

Referenced by commit(), and registerFastGlobalMonitorable().

std::string jsoncollector::FastMonitor::defPath_
private
std::string jsoncollector::FastMonitor::defPathFast_
private
bool jsoncollector::FastMonitor::deleteDef_ = false
private

Definition at line 109 of file FastMonitor.h.

Referenced by ~FastMonitor().

bool jsoncollector::FastMonitor::deleteDefFast_ = false
private

Definition at line 110 of file FastMonitor.h.

Referenced by addFastPathDefinition(), and ~FastMonitor().

DataPointDefinition const* jsoncollector::FastMonitor::dpd_
private

Definition at line 107 of file FastMonitor.h.

Referenced by commit(), FastMonitor(), and ~FastMonitor().

DataPointDefinition const* jsoncollector::FastMonitor::dpdFast_
private

Definition at line 108 of file FastMonitor.h.

Referenced by addFastPathDefinition(), commit(), and ~FastMonitor().

std::map<std::string, unsigned int> jsoncollector::FastMonitor::dpNameMap_
private
bool jsoncollector::FastMonitor::fastPathStrictChecking_
private

Definition at line 99 of file FastMonitor.h.

Referenced by addFastPathDefinition(), and commit().

unsigned int jsoncollector::FastMonitor::fregDpCount_ = 0
private

Definition at line 122 of file FastMonitor.h.

Referenced by commit().

bool jsoncollector::FastMonitor::haveFastPath_ = false
private

Definition at line 102 of file FastMonitor.h.

Referenced by addFastPathDefinition(), and commit().

std::vector<unsigned int> jsoncollector::FastMonitor::jsonDpIndex_
private

Definition at line 114 of file FastMonitor.h.

Referenced by commit(), outputFullJSON(), and outputFullJSONs().

std::vector<DataPoint*> jsoncollector::FastMonitor::jsonDpIndexFast_
private

Definition at line 115 of file FastMonitor.h.

Referenced by commit(), and getCSVString().

unsigned int jsoncollector::FastMonitor::nStreams_
private

Definition at line 104 of file FastMonitor.h.

Referenced by outputFullJSONs(), and setNStreams().

std::vector<DataPoint*> jsoncollector::FastMonitor::orphanedDps_
private

Definition at line 116 of file FastMonitor.h.

unsigned int jsoncollector::FastMonitor::recentSnaps_ = 0
private

Definition at line 119 of file FastMonitor.h.

Referenced by outputFullJSON(), outputFullJSONs(), snap(), snapGlobal(), and snapStreamAtomic().

unsigned int jsoncollector::FastMonitor::recentSnapsTimer_ = 0
private

Definition at line 120 of file FastMonitor.h.

Referenced by outputFullJSON(), outputFullJSONs(), and snap().

unsigned int jsoncollector::FastMonitor::regDpCount_ = 0
private

Definition at line 121 of file FastMonitor.h.

Referenced by commit(), snap(), snapGlobal(), and snapStreamAtomic().

std::string jsoncollector::FastMonitor::sourceInfo_
private
bool jsoncollector::FastMonitor::strictChecking_
private

Definition at line 98 of file FastMonitor.h.

Referenced by commit().

std::unordered_set<std::string> jsoncollector::FastMonitor::uids_
private
bool jsoncollector::FastMonitor::useDefinition_
private

Definition at line 101 of file FastMonitor.h.

Referenced by registerStreamMonitorableUIntVecAtomic().

bool jsoncollector::FastMonitor::useSource_
private

Definition at line 100 of file FastMonitor.h.