• 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
compiler.h 16.1 KB