From d4109e5c481ce9f106cc1e6d3739c0d9da8812da Mon Sep 17 00:00:00 2001 From: Yu-Hsuan Hsu Date: Wed, 20 May 2020 17:43:02 +0800 Subject: CRAS: Log the length of busyloop Log the length of busyloop in order to check the busyloop distribution. BUG=b:157116480 TEST=Trigger busyloop manually and check the chrome://histograms Change-Id: I7d69e940bc3b5e331c1fdf59df90020f3a4f4ecc Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/2209009 Reviewed-by: Cheng-Yi Chiang Tested-by: Yu-Hsuan Hsu Commit-Queue: Yu-Hsuan Hsu --- cras/src/tests/metrics_stub.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cras/src/tests/metrics_stub.cc') diff --git a/cras/src/tests/metrics_stub.cc b/cras/src/tests/metrics_stub.cc index 73998645..9a084c64 100644 --- a/cras/src/tests/metrics_stub.cc +++ b/cras/src/tests/metrics_stub.cc @@ -54,4 +54,8 @@ int cras_server_metrics_busyloop(struct timespec* ts, unsigned count) { return 0; } +int cras_server_metrics_busyloop_length(unsigned count) { + return 0; +} + } // extern "C" -- cgit v1.2.3