Skip to content

npozhar/Stator-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stator-cpp

Stats collection and reporting micro-framework. It provides API and barebone for applications than run some code, collect stats and report.

Requirements

  • Boost for programm options parsing and JSON-serialization
  • YAML-cpp for YAML configuration parsing

Getting started

For inspiration see fibonacci in example directory. Documentation in code describes main steps to your own stats collecting app.

Main concept

Stator consists of StatsEngine, Reporter, Serializer and helpers.

StatsEngine

Barebone of stats collecting app. It provides command line options parsing and template method run(). For you own app you must inherit StatsEngine and override at least process() method. See docs in engine.hpp for detailed description.

Reporter

Сollector of stats and final result provider. Provides API for stats saving during run. For detailed description see reporter.hpp.

Serializer

Serializer 😊 Now you have two options: plain text or JSON. All collected by Reporter stats serialized by Serializer to standard output. If you want to save stats to file, redirect output 😉

Helpers

For now we have only YAML-config parser (see config.hpp). Some execution time measuring staff may be added in future.

About

Stats collection and reporting micro-framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published