summaryrefslogtreecommitdiffstats
path: root/include/framework/util/Configuration.h
blob: 4a4524ad6760b2e24fcbcbc0bef4cd9d1e0cf82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * include/framework/util/Configuration.h
 *
 * Copyright (C) 2023 Douglas B. Rumbaugh <drumbaugh@psu.edu> 
 *
 * Distributed under the Modified BSD License.
 *
 */
#pragma once

#include <cstdlib>
#include <utility>

namespace de {

static thread_local size_t sampling_attempts = 0;
static thread_local size_t sampling_rejections = 0;
static thread_local size_t deletion_rejections = 0;
static thread_local size_t bounds_rejections = 0;
static thread_local size_t tombstone_rejections = 0;
static thread_local size_t buffer_rejections = 0;

/*
 * thread_local size_t various_sampling_times go here.
 */
static thread_local size_t sample_range_time = 0;
static thread_local size_t alias_time = 0;
static thread_local size_t alias_query_time = 0;
static thread_local size_t rejection_check_time = 0;
static thread_local size_t buffer_sample_time = 0;
static thread_local size_t memlevel_sample_time = 0;
static thread_local size_t disklevel_sample_time = 0;
static thread_local size_t sampling_bailouts = 0;


enum class LayoutPolicy {
    LEVELING,
    TEIRING,
    BSM
};

enum class DeletePolicy {
    TOMBSTONE,
    TAGGING
};

}