This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch hack-bypass-histogram-updates
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit eff37a8ed2d87ed05497cef473f52f648f627357
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Mon Jun 19 11:41:23 2023 -0400

    As a hack to quantify histogram update bottleneck disable histogram updates
    
    !don't merge!
    
    Related to: https://github.com/apache/couchdb-folsom/pull/5
---
 Makefile                            | 13 +++++++------
 src/couch_stats/src/couch_stats.erl |  3 +++
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile
index 1615cac67..2629f7c16 100644
--- a/Makefile
+++ b/Makefile
@@ -152,12 +152,13 @@ escriptize: couch
 .PHONY: check
 # target: check - Test everything
 check: all
-       @$(MAKE) exunit
-       @$(MAKE) eunit
-       @$(MAKE) mango-test
-       @$(MAKE) elixir-suite
-       @$(MAKE) weatherreport-test
-       @$(MAKE) nouveau-test
+       echo "Skip tests"
+       # @$(MAKE) exunit
+       # @$(MAKE) eunit
+       # @$(MAKE) mango-test
+       # @$(MAKE) elixir-suite
+       # @$(MAKE) weatherreport-test
+       # @$(MAKE) nouveau-test
 
 ifdef apps
 subdirs = $(apps)
diff --git a/src/couch_stats/src/couch_stats.erl 
b/src/couch_stats/src/couch_stats.erl
index e0303fc0f..a1715554f 100644
--- a/src/couch_stats/src/couch_stats.erl
+++ b/src/couch_stats/src/couch_stats.erl
@@ -114,6 +114,9 @@ update_gauge(Name, Value) ->
     notify_existing_metric(Name, Value, gauge).
 
 -spec notify_existing_metric(any(), any(), any()) -> response().
+notify_existing_metric(Name, Op, histogram) ->
+    %% HACK! skip histogram updates for a benchmark
+    ok;
 notify_existing_metric(Name, Op, Type) ->
     try
         ok = folsom_metrics:notify_existing_metric(Name, Op, Type)

Reply via email to