The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::app::ReportStatsCollector Class Reference

#include <ReportStatsCollector.hpp>

Inheritance diagram for sparta::app::ReportStatsCollector:
Collaboration diagram for sparta::app::ReportStatsCollector:

Public Member Functions

 ReportStatsCollector (simdb::DatabaseManager *db_mgr)
 
void createPipeline (simdb::pipeline::PipelineManager *pipeline_mgr) override
 
void setScheduler (const Scheduler *scheduler)
 
void addDescriptor (const ReportDescriptor *desc)
 
int getDescriptorID (const ReportDescriptor *desc, bool must_exist=true) const
 
void setHeader (const ReportDescriptor *desc, const report::format::ReportHeader &header)
 
void updateReportMetadata (const ReportDescriptor *desc, const std::string &key, const std::string &value)
 
void updateReportStartTime (const ReportDescriptor *desc)
 
void updateReportEndTime (const ReportDescriptor *desc)
 
void postInit (int argc, char **argv) override
 
void collect (const ReportDescriptor *desc)
 
void writeSkipAnnotation (const ReportDescriptor *desc, const std::string &annotation)
 
void postTeardown () override
 

Static Public Member Functions

static void defineSchema (simdb::Schema &)
 

Static Public Attributes

static constexpr auto NAME = "simdb-reports"
 

Detailed Description

This is a SimDB application that serializes all metadata about the report configuration(s), and collects data for report generation later on. A key feature of this app is that it allows for the simulation to run once, and then have multiple python classes handle the data in different ways (HDF5 converter, CSV exporter, display in a web page, etc).

Definition at line 31 of file ReportStatsCollector.hpp.

Constructor & Destructor Documentation

◆ ReportStatsCollector()

sparta::app::ReportStatsCollector::ReportStatsCollector ( simdb::DatabaseManager * db_mgr)
inline

Definition at line 36 of file ReportStatsCollector.hpp.

Member Data Documentation

◆ NAME

auto sparta::app::ReportStatsCollector::NAME = "simdb-reports"
staticconstexpr

Definition at line 34 of file ReportStatsCollector.hpp.


The documentation for this class was generated from the following file: