forked from weaselab/conflict-set
Add oldest_extant_version metric
This commit is contained in:
@@ -3262,6 +3262,7 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
|
|||||||
if (n == nullptr) {
|
if (n == nullptr) {
|
||||||
removalKey = {};
|
removalKey = {};
|
||||||
oldestExtantVersion = oldestVersionAtGcBegin;
|
oldestExtantVersion = oldestVersionAtGcBegin;
|
||||||
|
oldest_extant_version.set(oldestExtantVersion);
|
||||||
oldestVersionAtGcBegin = oldestVersionFullPrecision;
|
oldestVersionAtGcBegin = oldestVersionFullPrecision;
|
||||||
#if DEBUG_VERBOSE && !defined(NDEBUG)
|
#if DEBUG_VERBOSE && !defined(NDEBUG)
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
@@ -3310,6 +3311,7 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
|
|||||||
newestVersionFullPrecision = oldestVersion;
|
newestVersionFullPrecision = oldestVersion;
|
||||||
oldest_version.set(oldestVersionFullPrecision);
|
oldest_version.set(oldestVersionFullPrecision);
|
||||||
newest_version.set(newestVersionFullPrecision);
|
newest_version.set(newestVersionFullPrecision);
|
||||||
|
oldest_extant_version.set(oldestExtantVersion);
|
||||||
|
|
||||||
tls.~WriteContext();
|
tls.~WriteContext();
|
||||||
new (&tls) WriteContext();
|
new (&tls) WriteContext();
|
||||||
@@ -3432,6 +3434,9 @@ struct __attribute__((visibility("hidden"))) ConflictSet::Impl {
|
|||||||
GAUGE(oldest_version,
|
GAUGE(oldest_version,
|
||||||
"The lowest version that doesn't result in \"TooOld\" for checks");
|
"The lowest version that doesn't result in \"TooOld\" for checks");
|
||||||
GAUGE(newest_version, "The version of the most recent call to addWrites");
|
GAUGE(newest_version, "The version of the most recent call to addWrites");
|
||||||
|
GAUGE(
|
||||||
|
oldest_extant_version,
|
||||||
|
"A lower bound on the lowest version associated with an existing entry");
|
||||||
#if MEASURE_CHECK_CPU_TIME
|
#if MEASURE_CHECK_CPU_TIME
|
||||||
COUNTER(check_cpu_seconds_total,
|
COUNTER(check_cpu_seconds_total,
|
||||||
"Total cpu seconds spent in a call to check");
|
"Total cpu seconds spent in a call to check");
|
||||||
|
|||||||
Reference in New Issue
Block a user