• Daniel Cheng's avatar
    [blink] Use //base/metrics for recording enum metrics in core. · a2ac3a70
    Daniel Cheng authored
    This converts PaintTiming and ScriptLoader metrics to use the macro
    helper, and WorkerThread termination metrics to use the function helper.
    The distinction between function vs macro was made based on a guess on
    how performance sensitive the code recording the metric appears to be.
    In addition, the recorded enumerations have been updated to use the
    kMaxValue convention, allowing:
    
    - clang to enforce kMaxValue correctness
    - autodeduction of the max value by the enum histogram macro/function
      helpers.
    
    Bug: 742517, 1047547
    Change-Id: I24f51cde75880c6ac42675724bc0fad321bcaf33
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2524933Reviewed-by: default avatarJeremy Roman <jbroman@chromium.org>
    Commit-Queue: Daniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#826737}
    a2ac3a70
web_swap_result.h 1.02 KB