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 <[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 --- 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)
