245 class RepeatingEvent;
255 SINGLE_OCCURRENCE = 1,
261 NUMBER_OF_OCCURRENCES =
264 AVERAGE_DURATION = 2,
279 const std::shared_ptr<EventInfo>& ev_info);
296 explicit EventInfo(std::string in_string,
double in_value)
316 std::shared_ptr<EventInfo> in_event_info)
std::vector< Event > events_
const std::string & Name() const
bool operator==(const RepeatingEvent &other)
const std::vector< Event > & Events() const
RepeatingEvent(std::string &name)
std::vector< Event > & Events()
LogStream LogAllVerbose1()
double ProcessEvent(size_t ev_tag, EventOperation ev_operation)
DummyStream dummy_stream_
std::vector< RepeatingEvent > repeating_events
@ MAX_MEMORY_USAGE
Tag reserved for logging process memory.
void SetVerbosity(int int_level)
size_t GetExistingRepeatingEventTag(std::string event_name)
LogStream LogAllVerbose0()
static ChiLog & GetInstance() noexcept
LogStream LogAllVerbose2()
@ SINGLE_OCCURRENCE
Signals a single occurrence.
std::string PrintEventHistory(size_t ev_tag)
LogStream Log(LOG_LVL level=LOG_0)
size_t GetRepeatingEventTag(std::string event_name)
@ LOG_0VERBOSE_2
Used only if verbosity level equals 2.
@ LOG_0
Used only for location 0.
@ LOG_ALLERROR
Error for any location.
@ LOG_0VERBOSE_0
Default verbosity level.
@ LOG_ALLVERBOSE_1
Used only if verbosity level equals 1.
@ LOG_0WARNING
Warning only for location 0.
@ LOG_ALLVERBOSE_0
Default verbosity level.
@ LOG_0VERBOSE_1
Used only if verbosity level equals 1.
@ LOG_0ERROR
Error only for location 0.
@ LOG_ALLWARNING
Warning for any location.
@ LOG_ALL
Verbose level 0 all locations.
void LogEvent(size_t ev_tag, EventType ev_type, const std::shared_ptr< EventInfo > &ev_info)
LogStream LogAllWarning()
Event(double in_time, EventType in_ev_type, std::shared_ptr< EventInfo > in_event_info)
std::shared_ptr< EventInfo > ev_info
EventInfo(std::string in_string)
EventInfo(double in_value)
EventInfo(std::string in_string, double in_value)
virtual ~EventInfo()=default
virtual std::string GetString()