5 Commits
Author SHA1 Message Date
Camillo Bruni bbba51398b [agents] Add tools/v8-logviewer
Leverage the existing system-analyzer log processing and build a cli
around it with basic json output and filtering.

- Add v8-logviewer as a better cli to v8.log
  - list scripts, functions, code objects, ics, deopts
  - filter by script, function name...
- Add tools/find-d8.sh helper that we can use in all tools entry scripts

Todos:
- Add profile support (this is somewhat handled by the various
  tick-processor helpers)
- Add more detailed output for each subcommand
- Long-term we want to probably replace this with a trace-processor
  based solution that works seamlessly with data from d8 and from
  chromium.

Change-Id: I5e0a13ab861ce33f88e7bab10ae2bd58a009292f
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7785576
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Auto-Submit: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/main@{#106846}
2026-04-27 07:08:59 -07:00
Camillo Bruni 744d97c154 [tools] Use SFI name instead of Function or Code
The generic names are rather confusing when debugging.

- Rename FunctionEntry to SharedFunctionInfoEntry
- Rename .func to .sfi

Drive-by-fix: Improve d8 path resolution.

Bug: v8:14063
Change-Id: Ib6ccddb6af4f0684fd3918b4759c8b92b56e03ea
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4614436
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Dominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#88290}
2023-06-15 15:51:11 +00:00
Camillo Bruni 94bce1dcac [tools] Convert JS-tools to ES6 modules
This changes all tools to use ES6 modules and proper imports.

Step 1: Add converted .mjs files (*this CL*)
Step 2: Update node-ci build to use new .mjs files
Step 3: Remove outdated .js files

Bug: v8:10667, v8:10933
Change-Id: I3e92e66f896d8a9cacaf6d421f8d2c86fb3bc444
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2431045
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Sathya Gunasekaran  <gsathya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70163}
2020-09-28 14:40:18 +00:00
Camillo Bruni eff39bbb70 [tools] Move common arguments processing into separate file
Change-Id: Ia7b30b3f9d19ac1a6da978a0bd884e8f6f38841b
Reviewed-on: https://chromium-review.googlesource.com/730570
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48850}
2017-10-24 00:25:04 +00:00
Toon Verwaest 872a5fce74 Reimplement TraceIC using the logger
BUG=

Change-Id: Ib7cc2a04a7c8e314e1f4a8720eef569a6a4a3b18
Reviewed-on: https://chromium-review.googlesource.com/444406
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#43307}
2017-02-20 09:50:40 +00:00