24#ifndef COMPONENTS_SERVICES_BITS_PSI_BITS_H
25#define COMPONENTS_SERVICES_BITS_PSI_BITS_H
45#define PSI_DOCUMENT_ME ""
51#if defined(__clang__) && defined(_WIN32)
61#define PSI_FLAG_SINGLETON (1 << 0)
68#define PSI_FLAG_MUTABLE (1 << 1)
75#define PSI_FLAG_THREAD (1 << 2)
82#define PSI_FLAG_STAGE_PROGRESS (1 << 3)
88#define PSI_FLAG_RWLOCK_SX (1 << 4)
95#define PSI_FLAG_TRANSFER (1 << 5)
103#define PSI_FLAG_USER (1 << 6)
112#define PSI_FLAG_ONLY_GLOBAL_STAT (1 << 7)
118#define PSI_FLAG_RWLOCK_PR (1 << 8)
124#define PSI_FLAG_THREAD_SYSTEM (1 << 9)
130#define PSI_FLAG_AUTO_SEQNUM (1 << 10)
136#define PSI_FLAG_NO_SEQNUM (1 << 11)
141#define PSI_FLAG_MEM_COLLECT (1 << 12)
146#define PSI_FLAG_DISABLED (1 << 13)
151#define PSI_FLAG_UNTIMED (1 << 14)
153#define PSI_VOLATILITY_UNKNOWN 0
154#define PSI_VOLATILITY_PERMANENT 1
155#define PSI_VOLATILITY_PROVISIONING 2
156#define PSI_VOLATILITY_DDL 3
157#define PSI_VOLATILITY_CACHE 4
158#define PSI_VOLATILITY_SESSION 5
159#define PSI_VOLATILITY_TRANSACTION 6
160#define PSI_VOLATILITY_QUERY 7
161#define PSI_VOLATILITY_INTRA_QUERY 8
163#define PSI_COUNT_VOLATILITY 9
static constexpr unsigned PSI_INSTRUMENT_ME
Definition: psi_bits.h:43
static constexpr unsigned PSI_NOT_INSTRUMENTED
Definition: psi_bits.h:54
Instrumented artifact.
Definition: psi_bits.h:177
bool m_enabled
Instrumentation is enabled.
Definition: psi_bits.h:191
Definition: psi_bits.h:165
int m_placeholder
Definition: psi_bits.h:166