v8/v8
0
Files
v8/tools/callstats_groups.py
Omer Katz a7605e688f [heap] Adjust RuntimeCallStats for GC
1) Change background GC regex to also look for "GC_" instead of just
   "GC".
2) Add scope for `Sweeper::EnsurePageIsSwept` which was counted as
   JavaScript instead of GC.
3) Move allocation slow path RCS scope to cover all slow paths instead
   of just `RefillLabMain` (MinorMS for example is doing a bunch more
   stuff in the slow path, like waiting for background sweeping, which
   weren't accounted for in the scope).

Bug: v8:12612
Change-Id: Iacbd4451e7d055ed75e2e93dae9ac8be8bd49193
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4976461
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Omer Katz <omerkatz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#90605}
2023-10-26 09:07:00 +00:00

25 lines
1.1 KiB
Python

# Copyright 2019 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
RUNTIME_CALL_STATS_GROUPS = [
('Group-IC', re.compile(".*IC_.*")),
('Group-OptimizeBackground', re.compile(".*OptimizeBackground.*")),
('Group-Optimize',
re.compile("StackGuard|.*Optimize.*|.*Deoptimize.*|Recompile.*")),
('Group-CompileBackground', re.compile("(.*CompileBackground.*)")),
('Group-Compile', re.compile("(^Compile.*)|(.*_Compile.*)")),
('Group-ParseBackground', re.compile(".*ParseBackground.*")),
('Group-Parse', re.compile(".*Parse.*")),
('Group-Network-Data', re.compile(".*GetMoreDataCallback.*")),
('Group-Callback', re.compile(".*(Callback)|(Blink \+\+).*")),
('Group-API', re.compile(".*API.*")),
('Group-GC-Custom', re.compile("GC_Custom_.*")),
('Group-GC-Background', re.compile("GC_.*BACKGROUND.*")),
('Group-GC', re.compile("GC_.*|AllocateInTargetSpace")),
('Group-JavaScript', re.compile("JS_Execution")),
('Group-Runtime', re.compile(".*"))
]