Update C++ perf test harnesses to produce Histograms natively |
||||||
Issue descriptionThere are at least two C++ perf test harnesses: * PerfTimeLogger in //base/test/perf_log.cc https://codesearch.chromium.org/search/?q=PerfTimeLogger&sq=package:chromium&type=cs * //testing/perf/perf_test.cc https://codesearch.chromium.org/search/?q=%23include+%22testing/perf/perf_test.h%22&sq=package:chromium&type=cs Can they be merged? Either way, they need to be updated to allow perf tests such as cc_perftests to produce catapult-style Histograms within the next year: https://github.com/catapult-project/catapult/blob/master/docs/how-to-write-metrics.md#histograms The existing Histogram class in base/metrics/histogram.h nearly fits catapult-style Histograms. It mostly just needs to be able to describe how its bins were built. https://github.com/catapult-project/catapult/blob/master/tracing/tracing/value/histogram.html#L917 If we can add a pointer from a C++ Histogram to a C++ HistogramBinBoundaries object, that would allow serializing the boundary builder when the C++ Histogram is serialized. If a pointer would increase memory pressure (due to being multiplied by 5000 Histograms), then the perftest harness[es?] could use a subclass of Histogram instead. (Extending base/metrics/histogram may be a separate blocking bug?) Marking available because this is neither urgent nor high priority for me, but I wanted to go ahead and file it so that we can start designing and referring to it.
,
Apr 2 2018
This is still a good bug to tackle
,
Oct 4
Deep, are you planning on porting catapult Histograms to C++? Would that implementation be suitable for use in C++ perf tests?
,
Oct 4
,
Oct 4
Yes, I'll have to port catapult histograms to C++ to add perfetto metrics to the perf dashboard. Not exactly sure about the exact timeline yet, but my guess is either Q4 this year or Q1 next year.
,
Oct 4
Thanks! Can you please CC me on the CLs? When it starts to take shape, let's meet with benchmarking team to discuss migrating c++ perf tests to it.
,
Oct 4
I'm interested in this migration as well (and I just joined the benchmarking team).
,
Oct 5
benjhayden@: Of course! Will let everyone know when the work starts.
,
Oct 25
+Artem, please watch this bug to know when you can start switching your C++ tests to produce Histograms directly.
,
Nov 12
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by sheriffbot@chromium.org
, Apr 2 2018Status: Untriaged (was: Available)