• Benedikt Meurer's avatar
    [turbofan] Introduce V8.TurboFan timed histogram counters. · ab55cc73
    Benedikt Meurer authored
    This adds new timed histograms to measure the time that TurboFan spends
    on various compilation phases on a per function bases. This includes the
    following new counters:
    
    - V8.TurboFanOptimizePrepare
      Time spent in the preparation phase of TurboFan optimization. Recorded
      on each regular optimization of a function.
    - V8.TurboFanOptimizeExecute
      Time spent in the execution phase of TurboFan optimization. Recorded on
      each regular optimization of a function.
    - V8.TurboFanOptimizeFinalize
      Time spent in the finalization phase of TurboFan optimization. Recorded
      on each regular optimization of a function.
    - V8.TurboFanOptimizeTotalForeground
      Total time spent on the main thread during TurboFan optimization.
      Recorded on each regular optimization of a function.
    - V8.TurboFanOptimizeTotalBackground
      Total time spent on a background thread during TurboFan optimization.
      Recorded on each regular optimization of a function.
    - V8.TurboFanOptimizeTotalTime
      Total time from starting optimizing to installing the code object.
      Recorded on each regular optimization of a function.
    - V8.TurboFanOptimizeForOnStackReplacementPrepare
      Time spent in the preparation phase of TurboFan optimization for On
      Stack Replacement (OSR). Recorded on each optimization  for on-stack
      replacement of a function.
    - V8.TurboFanOptimizeForOnStackReplacementExecute
      Time spent in the execution phase of TurboFan optimization for On Stack
      Replacement (OSR). Recorded on each optimization  for on-stack replacement
      of a function.
    - V8.TurboFanOptimizeForOnStackReplacementFinalize
      Time spent in the finalization phase of TurboFan optimization for On Stack
      Replacement (OSR). Recorded on each optimization  for on-stack replacement
      of a function.
    - V8.TurboFanOptimizeForOnStackReplacementTotalTime
      Total time from starting optimizing for On Stack Replacement (OSR) to
      installing the code object. Recorded on each optimization for on-stack
      replacement of a function.
    
    This should give us a good overview and guide/validate future work on
    the concurrent optimization pipeline.
    
    Bug: v8:7790, v8:9074
    Change-Id: I96573cd1da472684d06624b7573e4afd6efca99c
    Doc: http://doc/1umgFxjLQ9p22lVS_BdhmAlo1o9xnxnWlhVi_HMWNktM
    Cq-Include-Trybots: luci.chromium.try:linux-blink-rel
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1547864
    Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
    Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
    Auto-Submit: Benedikt Meurer <bmeurer@chromium.org>
    Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#60604}
    ab55cc73
Name
Last commit
Last update
benchmarks Loading commit data...
build_overrides Loading commit data...
custom_deps Loading commit data...
docs Loading commit data...
gni Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.clang-tidy Loading commit data...
.editorconfig Loading commit data...
.git-blame-ignore-revs Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gn Loading commit data...
.vpython Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.fdlibm Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...