31 static std::vector<fhe_stats_record*>
map;
35 void save(
double val);
38 #define HELIB_STATS_UPDATE(name, val) \
41 static fhe_stats_record _local_stats_record(name); \
42 _local_stats_record.update(val); \
46 #define HELIB_STATS_SAVE(name, val) \
49 static fhe_stats_record _local_stats_record(name); \
50 _local_stats_record.save(val); \
std::vector< double > saved_values
Definition: fhe_stats.h:28
double sum
Definition: fhe_stats.h:25
static std::vector< fhe_stats_record * > map
Definition: fhe_stats.h:31
void update(double val)
Definition: fhe_stats.cpp:34
bool fhe_stats
Definition: fhe_stats.cpp:21
long count
Definition: fhe_stats.h:24
const char * name
Definition: fhe_stats.h:23
Definition: fhe_stats.h:22
void print_stats(std::ostream &s)
Definition: fhe_stats.cpp:54
const std::vector< double > * fetch_saved_values(const char *)
Definition: fhe_stats.cpp:70
void save(double val)
Definition: fhe_stats.cpp:43
Definition: apiAttributes.h:21
fhe_stats_record(const char *_name)
Definition: fhe_stats.cpp:26
double max
Definition: fhe_stats.h:26