Add argument to chromite.lib.metrics.Secondstimer() to allow not recording on exception |
|||
Issue descriptionWe may only care about the time an action takes when it succeeds.
,
Aug 17 2017
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/chromite/+/9333ce63aab0a66ee7f578153b4b26e85a8f55ba commit 9333ce63aab0a66ee7f578153b4b26e85a8f55ba Author: Paul Hobbs <phobbs@google.com> Date: Thu Aug 17 08:56:57 2017 metrics: Add "record_on_exception" flag to MetricsTimer Sometimes it doesn't make sense to record how long something took if it encountered an exception. BUG= chromium:750907 TEST=tests pass Change-Id: I911a092e448d179bb7f05102357ea894c6532625 Reviewed-on: https://chromium-review.googlesource.com/595133 Commit-Ready: Paul Hobbs <phobbs@google.com> Tested-by: Paul Hobbs <phobbs@google.com> Reviewed-by: Dan Shi <dshi@google.com> [modify] https://crrev.com/9333ce63aab0a66ee7f578153b4b26e85a8f55ba/lib/metrics.py
,
Aug 23 2017
,
Jan 22 2018
|
|||
►
Sign in to add a comment |
|||
Comment 1 by akes...@chromium.org
, Aug 8 2017