9 #ifndef IMPBASE_STATISTICS_H
10 #define IMPBASE_STATISTICS_H
12 #include <IMP/base/base_config.h>
15 #include "internal/static.h"
19 IMPBASE_BEGIN_NAMESPACE
32 void initialize(std::string key);
38 Timer(
const Object *
object, std::string
const& operation) {
39 if (internal::stats_level > NO_STATISTICS) {
40 initialize(object->get_name() +
"::" + operation);
45 Timer(
const Object *
object,
const char* operation) {
46 if (internal::stats_level > NO_STATISTICS) {
47 std::string s_operation(operation);
48 initialize(object->get_name() +
"::" + operation);
52 Timer(std::string operation) {
53 if (internal::stats_level > NO_STATISTICS) {
54 initialize(operation);
58 if (!key_.empty()) save();
void show_timings(TextOutput out)
Handling of file input/output.
StatisticsLevel
Specify the level of statistics to record.
void set_statistics_level(StatisticsLevel l)
Common base class for heavy weight IMP objects.