99bfa28bca
This is a reland of ed7e4554db
:
- fixing platform names for tickprocessor
- UnixCppEntriesProvider => LinuxCppEntriesProvider
- MacCppEntriesProvider => MacOSCppEntriesProvider
Original change's description:
> [mjsunit][tools][d8] Full roundtrip tickprocessor test
>
> - Add os.d8Path property
> - Add os.name property
> - Change tickprocssor test to use command line arguments for testing
> various configurations
> - Change tickprocessor test to create a temporary v8.log and read it
> back in on linux only
> - Rearrange code in tickprocessor.mjs to allow instantiating the
> CppEntriesProvider directly
> - Drop complete symbol-list for tickprocessor-test-large.log for better
> code searching in V8
>
> Change-Id: Ib56dd0a1ba5377282c84c4de6f17e2fd69ee8123
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2929120
> Reviewed-by: Patrick Thier <pthier@chromium.org>
> Commit-Queue: Camillo Bruni <cbruni@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#74892}
Change-Id: I5e121ba11f407af50108a2712d27c32867a22eb0
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2929382
Reviewed-by: Patrick Thier <pthier@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74902}
25 lines
882 B
JavaScript
25 lines
882 B
JavaScript
// Copyright 2016 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 {
|
|
CppProcessor, ArgumentsProcessor, LinuxCppEntriesProvider,
|
|
WindowsCppEntriesProvider, MacOSCppEntriesProvider
|
|
} from "./dumpcpp.mjs";
|
|
|
|
// Dump C++ symbols of shared library if possible
|
|
|
|
const entriesProviders = {
|
|
'linux': LinuxCppEntriesProvider,
|
|
'windows': WindowsCppEntriesProvider,
|
|
'macos': MacOSCppEntriesProvider
|
|
};
|
|
|
|
const params = ArgumentsProcessor.process(arguments);
|
|
const cppProcessor = new CppProcessor(
|
|
new (entriesProviders[params.platform])(params.nm, params.targetRootFS,
|
|
params.apkEmbeddedLibrary),
|
|
params.timedRange, params.pairwiseTimedRange);
|
|
cppProcessor.processLogFile(params.logFileName);
|
|
cppProcessor.dumpCppSymbols();
|