Kùzu C++ API
Loading...
Searching...
No Matches
metric.h
Go to the documentation of this file.
1#pragma once
2
3#include "timer.h"
4
5namespace kuzu {
6namespace common {
7
11class Metric {
12
13public:
14 explicit Metric(bool enabled) : enabled{enabled} {}
15
16 virtual ~Metric() = default;
17
18public:
19 bool enabled;
20};
21
22class TimeMetric : public Metric {
23
24public:
25 explicit TimeMetric(bool enable);
26
27 void start();
28 void stop();
29
30 double getElapsedTimeMS() const;
31
32public:
36};
37
38class NumericMetric : public Metric {
39
40public:
41 explicit NumericMetric(bool enable);
42
43 void increase(uint64_t value);
44
46
47public:
49};
50
51} // namespace common
52} // namespace kuzu
Definition metric.h:11
Metric(bool enabled)
Definition metric.h:14
bool enabled
Definition metric.h:19
virtual ~Metric()=default
Definition metric.h:38
void increase(uint64_t value)
uint64_t accumulatedValue
Definition metric.h:48
Definition metric.h:22
double getElapsedTimeMS() const
bool isStarted
Definition metric.h:34
double accumulatedTime
Definition metric.h:33
Timer timer
Definition metric.h:35
Definition timer.h:12
Definition alter_type.h:5