You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2023/06/19 15:45:54 UTC
[couchdb] 01/01: As a hack to quantify histogram update bottleneck disable histogram updates
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 3c108b9d538180c081e08aea69491cbc9573d7e1
Author: Nick Vatamaniuc <va...@gmail.com>
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
---
src/couch_stats/src/couch_stats.erl | 3 +++
1 file changed, 3 insertions(+)
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)