Aleksandr Efimov has uploaded this change for review. ( http://gerrit.cloudera.org:8080/24485
Change subject: IMPALA-15088: Add ReadOnlyIntGauge ...................................................................... IMPALA-15088: Add ReadOnlyIntGauge Add ReadOnlyIntGauge as the common read-only interface for integer gauge metrics. SumGauge, NegatedGauge, MemTracker consumption metrics, and malloc memory metric accessors now use the read-only interface. This lets both IntGauge and FunctionGauge satisfy code that only needs GetValue(). Replace the derived tcmalloc total-bytes-reserved and overhead metric classes with FunctionGauge instances. Testing: - git diff --check - python3 bin/jenkins/critique-gerrit-review.py --dryrun - focused Linux build: make java - focused Linux build: make unified-be-test-executable - focused Linux backend test: MetricsTest.* Assisted-by: OpenAI Codex Change-Id: Ida124aa3225ee07cf30e9f0a481477474a50c4dd --- M be/src/runtime/exec-env.cc M be/src/runtime/krpc-data-stream-mgr.h M be/src/runtime/mem-tracker.cc M be/src/runtime/mem-tracker.h M be/src/scheduling/admission-controller.cc M be/src/util/malloc-util-gperftools.h M be/src/util/malloc-util-libc.h M be/src/util/malloc-util-sanitizers.h M be/src/util/malloc-util.h M be/src/util/memory-metrics.cc M be/src/util/memory-metrics.h M be/src/util/metrics-fwd.h M be/src/util/metrics-test.cc M be/src/util/metrics.h 14 files changed, 71 insertions(+), 62 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/85/24485/1 -- To view, visit http://gerrit.cloudera.org:8080/24485 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ida124aa3225ee07cf30e9f0a481477474a50c4dd Gerrit-Change-Number: 24485 Gerrit-PatchSet: 1 Gerrit-Owner: Aleksandr Efimov <[email protected]>
