Yingchun Lai has posted comments on this change. ( http://gerrit.cloudera.org:8080/13580 )
Change subject: [metrics] Merge metrics by the same attribute ...................................................................... Patch Set 6: (5 comments) http://gerrit.cloudera.org:8080/#/c/13580/6/src/kudu/util/metrics.h File src/kudu/util/metrics.h: http://gerrit.cloudera.org:8080/#/c/13580/6/src/kudu/util/metrics.h@478 PS6, Line 478: will not take effect. > i.e. "will not be merged"? Done http://gerrit.cloudera.org:8080/#/c/13580/5/src/kudu/util/metrics.h File src/kudu/util/metrics.h: http://gerrit.cloudera.org:8080/#/c/13580/5/src/kudu/util/metrics.h@467 PS5, Line 467: > Why not just use the struct directly? Or, in the worst case, you can wrap i Done http://gerrit.cloudera.org:8080/#/c/13580/5/src/kudu/util/metrics.h@627 PS5, Line 627: Status CollectTo(MetricCollection* collections, > Doc (and use MetricFilters here?) Done http://gerrit.cloudera.org:8080/#/c/13580/5/src/kudu/util/metrics.h@1057 PS5, Line 1057: // call DetachToCurrentValue() to make it safe. : down_cast<FunctionGauge<T>*>(m.get())->DetachToCurrentValue(); : return m; > That'd be fine. In the base class please doc the contract. Done http://gerrit.cloudera.org:8080/#/c/13580/6/src/kudu/util/metrics.cc File src/kudu/util/metrics.cc: http://gerrit.cloudera.org:8080/#/c/13580/6/src/kudu/util/metrics.cc@682 PS6, Line 682: void StringGauge::fill_unique_values_unlock() { > Only used on L690, so why not inline it there? Done -- To view, visit http://gerrit.cloudera.org:8080/13580 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I8db3d082ae847eb1d83b9e4aee57d5e4bf13e1b5 Gerrit-Change-Number: 13580 Gerrit-PatchSet: 6 Gerrit-Owner: Yingchun Lai <[email protected]> Gerrit-Reviewer: Adar Dembo <[email protected]> Gerrit-Reviewer: Andrew Wong <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Tidy Bot (241) Gerrit-Reviewer: Yingchun Lai <[email protected]> Gerrit-Comment-Date: Fri, 12 Jul 2019 07:31:43 +0000 Gerrit-HasComments: Yes
