Commit 27b226b7 authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[tools] Remove map-processor

- The command line tool never fully worked
- All the main features of the map-processor are now available in
  the system-analyzer

Bug: v8:10644
Change-Id: Ic55b1d6de561079b079045097856a3b4e5f4bb95
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2497178Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70764}
parent 87bc38e3
...@@ -63,6 +63,10 @@ dd, dt { ...@@ -63,6 +63,10 @@ dd, dt {
<h1>Welcome to the V8 Tools Landing Page</h1> <h1>Welcome to the V8 Tools Landing Page</h1>
<p>Search through this page to find about the V8 tools to debug, trace and analyze the log files.</p> <p>Search through this page to find about the V8 tools to debug, trace and analyze the log files.</p>
<dl class="grid-container"> <dl class="grid-container">
<div class="card">
<dt><a href="./system-analyzer/index.html">System Analyzer</a></dt>
<dd>A unified web interface to trace, debug and analyse patterns of how Maps/ICs are created in the real world applications.</dd>
</div>
<div class="card"> <div class="card">
<dt><a href="./callstats.html">Callstats</a></dt> <dt><a href="./callstats.html">Callstats</a></dt>
<dd>Visualize and compare runtime call stats.</dd> <dd>Visualize and compare runtime call stats.</dd>
...@@ -75,10 +79,6 @@ dd, dt { ...@@ -75,10 +79,6 @@ dd, dt {
<dt><a href="./ic-explorer.html">IC Explorer</a></dt> <dt><a href="./ic-explorer.html">IC Explorer</a></dt>
<dd>Analyse inline caches.</dd> <dd>Analyse inline caches.</dd>
</div> </div>
<div class="card">
<dt><a href="./map-processor.html">Map Processor</a></dt>
<dd>Analyse Maps and their transition trees.</dd>
</div>
<div class="card"> <div class="card">
<dt><a href="./parse-processor.html">Parse Processor</a></dt> <dt><a href="./parse-processor.html">Parse Processor</a></dt>
<dd>Analyse parse, compile and first-execution.</dd> <dd>Analyse parse, compile and first-execution.</dd>
...@@ -87,10 +87,6 @@ dd, dt { ...@@ -87,10 +87,6 @@ dd, dt {
<dt><a href="./profview/index.html">Profview</a></dt> <dt><a href="./profview/index.html">Profview</a></dt>
<dd>Fancy sampling profile viewer.</dd> <dd>Fancy sampling profile viewer.</dd>
</div> </div>
<div class="card">
<dt><a href="./system-analyzer/index.html">System Analyzer</a></dt>
<dd>A unified web interface to trace, debug and analyse patterns of how Maps/ICs are created in the real world applications.</dd>
</div>
<div class="card"> <div class="card">
<dt><a href="./tick-processor.html">Tick Processor</a></dt> <dt><a href="./tick-processor.html">Tick Processor</a></dt>
<dd>Simple sampling profile viewer.</dd> <dd>Simple sampling profile viewer.</dd>
......
#!/bin/sh
# find the name of the log file to process, it must not start with a dash.
log_file="v8.log"
for arg in "$@"
do
if ! expr "X${arg}" : "^X-" > /dev/null; then
log_file=${arg}
fi
done
tools_path=`cd $(dirname "$0");pwd`
if [ ! "$D8_PATH" ]; then
d8_public=`which d8`
if [ -x "$d8_public" ]; then D8_PATH=$(dirname "$d8_public"); fi
fi
[ -n "$D8_PATH" ] || D8_PATH=$tools_path/..
d8_exec=$D8_PATH/d8
if [ ! -x "$d8_exec" ]; then
D8_PATH=`pwd`/out/native
d8_exec=$D8_PATH/d8
fi
if [ ! -x "$d8_exec" ]; then
d8_exec=`grep -m 1 -o '".*/d8"' $log_file | sed 's/"//g'`
fi
if [ ! -x "$d8_exec" ]; then
echo "d8 shell not found in $D8_PATH"
echo "Please provide path to d8 as env var in D8_PATH"
exit 1
fi
# nm spits out 'no symbols found' messages to stderr.
cat $log_file | $d8_exec \
--module $tools_path/map-processor-driver.mjs -- $@ 2>/dev/null
// Copyright 2017 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 { WebInspector } from "./sourcemap.mjs";
import {
MapProcessor, ArgumentsProcessor, readFile
} from "./map-processor.mjs";
function processArguments(args) {
var processor = new ArgumentsProcessor(args);
if (processor.parse()) {
return processor.result();
} else {
processor.printUsageAndExit();
}
}
function initSourceMapSupport() {
// Pull dev tools source maps into our name space.
SourceMap = WebInspector.SourceMap;
// Overwrite the load function to load scripts synchronously.
SourceMap.load = function(sourceMapURL) {
var content = readFile(sourceMapURL);
var sourceMapObject = (JSON.parse(content));
return new SourceMap(sourceMapURL, sourceMapObject);
};
}
var params = processArguments(arguments);
var sourceMap = null;
if (params.sourceMap) {
initSourceMapSupport();
sourceMap = SourceMap.load(params.sourceMap);
}
var mapProcessor = new MapProcessor();
mapProcessor.processLogFile(params.logFileName);
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment