@memlab/cli 1.0.14 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +2 -2
- package/bin/memlab.js +2 -2
- package/bin/preinstall +1 -1
- package/dist/BaseCommand.d.ts +1 -1
- package/dist/BaseCommand.js +1 -1
- package/dist/CommandLoader.d.ts +1 -1
- package/dist/CommandLoader.js +2 -2
- package/dist/Dispatcher.d.ts +1 -1
- package/dist/Dispatcher.js +1 -1
- package/dist/TypesThirdParty.d.ts +1 -1
- package/dist/TypesThirdParty.js +1 -1
- package/dist/commands/CleanLoggerDataCommand.d.ts +1 -1
- package/dist/commands/CleanLoggerDataCommand.js +1 -1
- package/dist/commands/CleanRunDataCommand.d.ts +1 -1
- package/dist/commands/CleanRunDataCommand.js +1 -1
- package/dist/commands/GetVersionCommand.d.ts +1 -1
- package/dist/commands/GetVersionCommand.js +1 -1
- package/dist/commands/InitDirectoryCommand.d.ts +1 -1
- package/dist/commands/InitDirectoryCommand.js +1 -1
- package/dist/commands/ListScenariosCommand.d.ts +1 -1
- package/dist/commands/ListScenariosCommand.js +1 -1
- package/dist/commands/MemLabRunCommand.d.ts +1 -1
- package/dist/commands/MemLabRunCommand.js +5 -5
- package/dist/commands/PrintSummaryCommand.d.ts +1 -1
- package/dist/commands/PrintSummaryCommand.js +1 -1
- package/dist/commands/ResetDirectoryCommand.d.ts +1 -1
- package/dist/commands/ResetDirectoryCommand.js +1 -1
- package/dist/commands/RunMeasureCommand.d.ts +1 -1
- package/dist/commands/RunMeasureCommand.js +21 -15
- package/dist/commands/WarmupAppCommand.d.ts +1 -1
- package/dist/commands/WarmupAppCommand.js +16 -10
- package/dist/commands/heap/CheckLeakCommand.d.ts +1 -1
- package/dist/commands/heap/CheckLeakCommand.js +1 -1
- package/dist/commands/heap/GetRetainerTraceCommand.d.ts +1 -1
- package/dist/commands/heap/GetRetainerTraceCommand.js +2 -2
- package/dist/commands/heap/HeapAnalysisCommand.d.ts +1 -1
- package/dist/commands/heap/HeapAnalysisCommand.js +1 -1
- package/dist/commands/heap/HeapAnalysisSubCommandWrapper.d.ts +1 -1
- package/dist/commands/heap/HeapAnalysisSubCommandWrapper.js +1 -1
- package/dist/commands/heap/interactive/InteractiveCommandLoader.d.ts +1 -1
- package/dist/commands/heap/interactive/InteractiveCommandLoader.js +1 -1
- package/dist/commands/heap/interactive/InteractiveHeapCommand.d.ts +1 -1
- package/dist/commands/heap/interactive/InteractiveHeapCommand.js +1 -1
- package/dist/commands/heap/interactive/InteractiveHeapExploreCommand.d.ts +1 -1
- package/dist/commands/heap/interactive/InteractiveHeapExploreCommand.js +2 -2
- package/dist/commands/heap/interactive/ui-components/CliScreen.d.ts +5 -0
- package/dist/commands/heap/interactive/ui-components/CliScreen.js +56 -11
- package/dist/commands/heap/interactive/ui-components/HeapViewController.d.ts +1 -1
- package/dist/commands/heap/interactive/ui-components/HeapViewController.js +19 -0
- package/dist/commands/heap/interactive/ui-components/HeapViewUtils.d.ts +1 -1
- package/dist/commands/heap/interactive/ui-components/ListComponent.d.ts +1 -1
- package/dist/commands/helper/GenerateCLIDocCommand.d.ts +1 -1
- package/dist/commands/helper/GenerateCLIDocCommand.js +1 -1
- package/dist/commands/helper/HelperCommand.d.ts +2 -1
- package/dist/commands/helper/HelperCommand.js +19 -4
- package/dist/commands/helper/lib/CommandOrder.d.ts +1 -1
- package/dist/commands/helper/lib/CommandOrder.js +1 -1
- package/dist/commands/helper/lib/Types.d.ts +1 -1
- package/dist/commands/helper/lib/Types.js +1 -1
- package/dist/commands/query/QueryDefaultWorkDirCommand.d.ts +1 -1
- package/dist/commands/query/QueryDefaultWorkDirCommand.js +1 -1
- package/dist/commands/snapshot/CheckXvfbSupportCommand.d.ts +1 -1
- package/dist/commands/snapshot/CheckXvfbSupportCommand.js +1 -1
- package/dist/commands/snapshot/Snapshot.d.ts +1 -1
- package/dist/commands/snapshot/Snapshot.js +1 -1
- package/dist/commands/snapshot/TakeSnapshotCommand.d.ts +1 -1
- package/dist/commands/snapshot/TakeSnapshotCommand.js +21 -15
- package/dist/commands/snapshot/WarmupAndSnapshotCommand.d.ts +1 -1
- package/dist/commands/snapshot/WarmupAndSnapshotCommand.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/options/DebugOption.d.ts +1 -1
- package/dist/options/DebugOption.js +1 -1
- package/dist/options/HelperOption.d.ts +1 -1
- package/dist/options/HelperOption.js +1 -1
- package/dist/options/MLClusteringLinkageMaxDistanceOption.d.ts +1 -1
- package/dist/options/MLClusteringLinkageMaxDistanceOption.js +1 -1
- package/dist/options/MLClusteringMaxDFOption.d.ts +1 -1
- package/dist/options/MLClusteringMaxDFOption.js +1 -1
- package/dist/options/MLClusteringOption.d.ts +1 -1
- package/dist/options/MLClusteringOption.js +1 -1
- package/dist/options/NumberOfRunsOption.d.ts +1 -1
- package/dist/options/NumberOfRunsOption.js +1 -1
- package/dist/options/SetContinuousTestOption.d.ts +1 -1
- package/dist/options/SetContinuousTestOption.js +1 -1
- package/dist/options/SetWorkingDirectoryOption.d.ts +1 -1
- package/dist/options/SetWorkingDirectoryOption.js +1 -1
- package/dist/options/SilentOption.d.ts +1 -1
- package/dist/options/SilentOption.js +1 -1
- package/dist/options/VerboseOption.d.ts +1 -1
- package/dist/options/VerboseOption.js +1 -1
- package/dist/options/{AppOption.d.ts → e2e/AppOption.d.ts} +1 -1
- package/dist/options/{AppOption.js → e2e/AppOption.js} +1 -1
- package/dist/options/e2e/DisableWebSecurityOption.d.ts +18 -0
- package/dist/options/e2e/DisableWebSecurityOption.js +38 -0
- package/dist/options/{DisableXvfbOption.d.ts → e2e/DisableXvfbOption.d.ts} +1 -1
- package/dist/options/{DisableXvfbOption.js → e2e/DisableXvfbOption.js} +1 -1
- package/dist/options/e2e/EnableJSRewriteOption.d.ts +18 -0
- package/dist/options/e2e/EnableJSRewriteOption.js +37 -0
- package/dist/options/{FullExecutionOption.d.ts → e2e/FullExecutionOption.d.ts} +1 -1
- package/dist/options/{FullExecutionOption.js → e2e/FullExecutionOption.js} +1 -1
- package/dist/options/{HeadfulBrowserOption.d.ts → e2e/HeadfulBrowserOption.d.ts} +1 -1
- package/dist/options/{HeadfulBrowserOption.js → e2e/HeadfulBrowserOption.js} +1 -1
- package/dist/options/{InteractionOption.d.ts → e2e/InteractionOption.d.ts} +1 -1
- package/dist/options/{InteractionOption.js → e2e/InteractionOption.js} +1 -1
- package/dist/options/{RemoteBrowserDebugOption.d.ts → e2e/RemoteBrowserDebugOption.d.ts} +1 -1
- package/dist/options/{RemoteBrowserDebugOption.js → e2e/RemoteBrowserDebugOption.js} +1 -1
- package/dist/options/{RunningModeOption.d.ts → e2e/RunningModeOption.d.ts} +1 -1
- package/dist/options/{RunningModeOption.js → e2e/RunningModeOption.js} +1 -1
- package/dist/options/{ScenarioFileOption.d.ts → e2e/ScenarioFileOption.d.ts} +1 -1
- package/dist/options/{ScenarioFileOption.js → e2e/ScenarioFileOption.js} +1 -1
- package/dist/options/{SetDeviceOption.d.ts → e2e/SetDeviceOption.d.ts} +1 -1
- package/dist/options/{SetDeviceOption.js → e2e/SetDeviceOption.js} +1 -1
- package/dist/options/e2e/SetUserAgentOption.d.ts +19 -0
- package/dist/options/e2e/SetUserAgentOption.js +42 -0
- package/dist/options/{SkipExtraOperationOption.d.ts → e2e/SkipExtraOperationOption.d.ts} +1 -1
- package/dist/options/{SkipExtraOperationOption.js → e2e/SkipExtraOperationOption.js} +1 -1
- package/dist/options/{SkipGCOption.d.ts → e2e/SkipGCOption.d.ts} +1 -1
- package/dist/options/{SkipGCOption.js → e2e/SkipGCOption.js} +1 -1
- package/dist/options/{SkipScreenshotOption.d.ts → e2e/SkipScreenshotOption.d.ts} +1 -1
- package/dist/options/{SkipScreenshotOption.js → e2e/SkipScreenshotOption.js} +1 -1
- package/dist/options/{SkipScrollOption.d.ts → e2e/SkipScrollOption.d.ts} +1 -1
- package/dist/options/{SkipScrollOption.js → e2e/SkipScrollOption.js} +1 -1
- package/dist/options/{SkipSnapshotOption.d.ts → e2e/SkipSnapshotOption.d.ts} +1 -1
- package/dist/options/{SkipSnapshotOption.js → e2e/SkipSnapshotOption.js} +1 -1
- package/dist/options/{SkipWarmupOption.d.ts → e2e/SkipWarmupOption.d.ts} +1 -1
- package/dist/options/{SkipWarmupOption.js → e2e/SkipWarmupOption.js} +1 -1
- package/dist/options/heap/BaselineFileOption.d.ts +1 -1
- package/dist/options/heap/BaselineFileOption.js +1 -1
- package/dist/options/heap/FinalFileOption.d.ts +1 -1
- package/dist/options/heap/FinalFileOption.js +1 -1
- package/dist/options/{HeapNodeIdOption.d.ts → heap/HeapNodeIdOption.d.ts} +1 -1
- package/dist/options/{HeapNodeIdOption.js → heap/HeapNodeIdOption.js} +1 -1
- package/dist/options/heap/JSEngineOption.d.ts +1 -1
- package/dist/options/heap/JSEngineOption.js +1 -1
- package/dist/options/heap/LeakClusterSizeThresholdOption.d.ts +1 -1
- package/dist/options/heap/LeakClusterSizeThresholdOption.js +1 -1
- package/dist/options/heap/LogTraceAsClusterOption.d.ts +1 -1
- package/dist/options/heap/LogTraceAsClusterOption.js +1 -1
- package/dist/options/heap/OversizeThresholdOption.d.ts +1 -1
- package/dist/options/heap/OversizeThresholdOption.js +1 -1
- package/dist/options/heap/SnapshotDirectoryOption.d.ts +1 -1
- package/dist/options/heap/SnapshotDirectoryOption.js +1 -1
- package/dist/options/heap/SnapshotFileOption.d.ts +1 -1
- package/dist/options/heap/SnapshotFileOption.js +1 -1
- package/dist/options/heap/TargetFileOption.d.ts +1 -1
- package/dist/options/heap/TargetFileOption.js +1 -1
- package/dist/options/heap/TraceAllObjectsOption.d.ts +1 -1
- package/dist/options/heap/TraceAllObjectsOption.js +1 -1
- package/dist/options/heap/leak-filter/LeakFilterFileOption.d.ts +1 -1
- package/dist/options/heap/leak-filter/LeakFilterFileOption.js +1 -1
- package/dist/options/heap/leak-filter/examples/FilterLib.d.ts +1 -1
- package/dist/options/heap/leak-filter/examples/FilterLib.js +1 -1
- package/dist/options/heap/leak-filter/examples/dup-string-as-leak.example-1.d.ts +1 -1
- package/dist/options/heap/leak-filter/examples/dup-string-as-leak.example-1.js +1 -1
- package/dist/options/heap/leak-filter/examples/dup-string-as-leak.example-2.d.ts +1 -1
- package/dist/options/heap/leak-filter/examples/dup-string-as-leak.example-2.js +1 -1
- package/dist/options/heap/leak-filter/examples/large-object-as-leak.example.js +1 -1
- package/dist/options/lib/UniversalOptions.d.ts +1 -1
- package/dist/options/lib/UniversalOptions.js +1 -1
- package/dist/runner.d.ts +1 -1
- package/dist/runner.js +1 -1
- package/package.json +5 -5
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -4,5 +4,5 @@ This is the memlab CLI library. It contains all memlab commands, command-line op
|
|
|
4
4
|
The library supports adding new commands.
|
|
5
5
|
|
|
6
6
|
## Online Resources
|
|
7
|
-
* [Official Website and Demo](https://
|
|
8
|
-
* [Documentation](https://
|
|
7
|
+
* [Official Website and Demo](https://facebook.github.io/memlab)
|
|
8
|
+
* [Documentation](https://facebook.github.io/memlab/docs/intro)
|
package/bin/memlab.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env node --expose-gc --max-old-space-size=4096
|
|
1
|
+
#!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*
|
|
9
9
|
* @format
|
|
10
|
-
* @oncall
|
|
10
|
+
* @oncall web_perf_infra
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
// eslint-disable-next-line no-var
|
package/bin/preinstall
CHANGED
package/dist/BaseCommand.d.ts
CHANGED
package/dist/BaseCommand.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
package/dist/CommandLoader.d.ts
CHANGED
package/dist/CommandLoader.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -70,7 +70,7 @@ class CommandLoader {
|
|
|
70
70
|
}
|
|
71
71
|
const commandName = moduleInstance.getCommandName();
|
|
72
72
|
const loadingOssCommand = !core_1.fileManager.isWithinInternalDirectory(modulePath);
|
|
73
|
-
//
|
|
73
|
+
// register OSS commands
|
|
74
74
|
if (loadingOssCommand) {
|
|
75
75
|
this.OSSModules.set(commandName, moduleInstance);
|
|
76
76
|
}
|
package/dist/Dispatcher.d.ts
CHANGED
package/dist/Dispatcher.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
package/dist/TypesThirdParty.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
12
|
if (k2 === undefined) k2 = k;
|
|
@@ -52,10 +52,10 @@ const CheckLeakCommand_1 = __importDefault(require("./heap/CheckLeakCommand"));
|
|
|
52
52
|
const InitDirectoryCommand_1 = __importDefault(require("./InitDirectoryCommand"));
|
|
53
53
|
const TakeSnapshotCommand_1 = __importDefault(require("./snapshot/TakeSnapshotCommand"));
|
|
54
54
|
const SetWorkingDirectoryOption_1 = __importDefault(require("../options/SetWorkingDirectoryOption"));
|
|
55
|
-
const AppOption_1 = __importDefault(require("../options/AppOption"));
|
|
56
|
-
const InteractionOption_1 = __importDefault(require("../options/InteractionOption"));
|
|
57
|
-
const SkipSnapshotOption_1 = __importDefault(require("../options/SkipSnapshotOption"));
|
|
58
|
-
const RunningModeOption_1 = __importDefault(require("../options/RunningModeOption"));
|
|
55
|
+
const AppOption_1 = __importDefault(require("../options/e2e/AppOption"));
|
|
56
|
+
const InteractionOption_1 = __importDefault(require("../options/e2e/InteractionOption"));
|
|
57
|
+
const SkipSnapshotOption_1 = __importDefault(require("../options/e2e/SkipSnapshotOption"));
|
|
58
|
+
const RunningModeOption_1 = __importDefault(require("../options/e2e/RunningModeOption"));
|
|
59
59
|
const BaselineFileOption_1 = __importDefault(require("../options/heap/BaselineFileOption"));
|
|
60
60
|
const TargetFileOption_1 = __importDefault(require("../options/heap/TargetFileOption"));
|
|
61
61
|
const FinalFileOption_1 = __importDefault(require("../options/heap/FinalFileOption"));
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -26,21 +26,24 @@ const InitDirectoryCommand_1 = __importDefault(require("./InitDirectoryCommand")
|
|
|
26
26
|
const core_1 = require("@memlab/core");
|
|
27
27
|
const CleanRunDataCommand_1 = __importDefault(require("./CleanRunDataCommand"));
|
|
28
28
|
const Snapshot_1 = require("./snapshot/Snapshot");
|
|
29
|
-
const AppOption_1 = __importDefault(require("../options/AppOption"));
|
|
30
|
-
const FullExecutionOption_1 = __importDefault(require("../options/FullExecutionOption"));
|
|
31
|
-
const InteractionOption_1 = __importDefault(require("../options/InteractionOption"));
|
|
32
|
-
const SkipScreenshotOption_1 = __importDefault(require("../options/SkipScreenshotOption"));
|
|
33
|
-
const SkipSnapshotOption_1 = __importDefault(require("../options/SkipSnapshotOption"));
|
|
34
|
-
const SkipGCOption_1 = __importDefault(require("../options/SkipGCOption"));
|
|
35
|
-
const SkipScrollOption_1 = __importDefault(require("../options/SkipScrollOption"));
|
|
36
|
-
const SkipExtraOperationOption_1 = __importDefault(require("../options/SkipExtraOperationOption"));
|
|
37
|
-
const RunningModeOption_1 = __importDefault(require("../options/RunningModeOption"));
|
|
38
|
-
const RemoteBrowserDebugOption_1 = __importDefault(require("../options/RemoteBrowserDebugOption"));
|
|
39
|
-
const ScenarioFileOption_1 = __importDefault(require("../options/ScenarioFileOption"));
|
|
40
|
-
const SetDeviceOption_1 = __importDefault(require("../options/SetDeviceOption"));
|
|
41
|
-
const
|
|
29
|
+
const AppOption_1 = __importDefault(require("../options/e2e/AppOption"));
|
|
30
|
+
const FullExecutionOption_1 = __importDefault(require("../options/e2e/FullExecutionOption"));
|
|
31
|
+
const InteractionOption_1 = __importDefault(require("../options/e2e/InteractionOption"));
|
|
32
|
+
const SkipScreenshotOption_1 = __importDefault(require("../options/e2e/SkipScreenshotOption"));
|
|
33
|
+
const SkipSnapshotOption_1 = __importDefault(require("../options/e2e/SkipSnapshotOption"));
|
|
34
|
+
const SkipGCOption_1 = __importDefault(require("../options/e2e/SkipGCOption"));
|
|
35
|
+
const SkipScrollOption_1 = __importDefault(require("../options/e2e/SkipScrollOption"));
|
|
36
|
+
const SkipExtraOperationOption_1 = __importDefault(require("../options/e2e/SkipExtraOperationOption"));
|
|
37
|
+
const RunningModeOption_1 = __importDefault(require("../options/e2e/RunningModeOption"));
|
|
38
|
+
const RemoteBrowserDebugOption_1 = __importDefault(require("../options/e2e/RemoteBrowserDebugOption"));
|
|
39
|
+
const ScenarioFileOption_1 = __importDefault(require("../options/e2e/ScenarioFileOption"));
|
|
40
|
+
const SetDeviceOption_1 = __importDefault(require("../options/e2e/SetDeviceOption"));
|
|
41
|
+
const SetUserAgentOption_1 = __importDefault(require("../options/e2e/SetUserAgentOption"));
|
|
42
|
+
const DisableXvfbOption_1 = __importDefault(require("../options/e2e/DisableXvfbOption"));
|
|
42
43
|
const NumberOfRunsOption_1 = __importDefault(require("../options/NumberOfRunsOption"));
|
|
43
|
-
const HeadfulBrowserOption_1 = __importDefault(require("../options/HeadfulBrowserOption"));
|
|
44
|
+
const HeadfulBrowserOption_1 = __importDefault(require("../options/e2e/HeadfulBrowserOption"));
|
|
45
|
+
const DisableWebSecurityOption_1 = __importDefault(require("../options/e2e/DisableWebSecurityOption"));
|
|
46
|
+
const EnableJSRewriteOption_1 = __importDefault(require("../options/e2e/EnableJSRewriteOption"));
|
|
44
47
|
class RunMeasureCommand extends BaseCommand_1.default {
|
|
45
48
|
getCommandName() {
|
|
46
49
|
return 'measure';
|
|
@@ -74,7 +77,10 @@ class RunMeasureCommand extends BaseCommand_1.default {
|
|
|
74
77
|
new RemoteBrowserDebugOption_1.default(),
|
|
75
78
|
new ScenarioFileOption_1.default(),
|
|
76
79
|
new SetDeviceOption_1.default(),
|
|
80
|
+
new SetUserAgentOption_1.default(),
|
|
77
81
|
new DisableXvfbOption_1.default(),
|
|
82
|
+
new DisableWebSecurityOption_1.default(),
|
|
83
|
+
new EnableJSRewriteOption_1.default(),
|
|
78
84
|
];
|
|
79
85
|
}
|
|
80
86
|
run(options) {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
12
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -24,16 +24,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
const BaseCommand_1 = __importDefault(require("../BaseCommand"));
|
|
25
25
|
const api_1 = require("@memlab/api");
|
|
26
26
|
const InitDirectoryCommand_1 = __importDefault(require("./InitDirectoryCommand"));
|
|
27
|
-
const AppOption_1 = __importDefault(require("../options/AppOption"));
|
|
28
|
-
const InteractionOption_1 = __importDefault(require("../options/InteractionOption"));
|
|
29
|
-
const RunningModeOption_1 = __importDefault(require("../options/RunningModeOption"));
|
|
30
|
-
const RemoteBrowserDebugOption_1 = __importDefault(require("../options/RemoteBrowserDebugOption"));
|
|
31
|
-
const ScenarioFileOption_1 = __importDefault(require("../options/ScenarioFileOption"));
|
|
32
|
-
const SetDeviceOption_1 = __importDefault(require("../options/SetDeviceOption"));
|
|
33
|
-
const
|
|
34
|
-
const
|
|
27
|
+
const AppOption_1 = __importDefault(require("../options/e2e/AppOption"));
|
|
28
|
+
const InteractionOption_1 = __importDefault(require("../options/e2e/InteractionOption"));
|
|
29
|
+
const RunningModeOption_1 = __importDefault(require("../options/e2e/RunningModeOption"));
|
|
30
|
+
const RemoteBrowserDebugOption_1 = __importDefault(require("../options/e2e/RemoteBrowserDebugOption"));
|
|
31
|
+
const ScenarioFileOption_1 = __importDefault(require("../options/e2e/ScenarioFileOption"));
|
|
32
|
+
const SetDeviceOption_1 = __importDefault(require("../options/e2e/SetDeviceOption"));
|
|
33
|
+
const SetUserAgentOption_1 = __importDefault(require("../options/e2e/SetUserAgentOption"));
|
|
34
|
+
const DisableXvfbOption_1 = __importDefault(require("../options/e2e/DisableXvfbOption"));
|
|
35
|
+
const SkipWarmupOption_1 = __importDefault(require("../options/e2e/SkipWarmupOption"));
|
|
35
36
|
const CheckXvfbSupportCommand_1 = __importDefault(require("./snapshot/CheckXvfbSupportCommand"));
|
|
36
|
-
const HeadfulBrowserOption_1 = __importDefault(require("../options/HeadfulBrowserOption"));
|
|
37
|
+
const HeadfulBrowserOption_1 = __importDefault(require("../options/e2e/HeadfulBrowserOption"));
|
|
38
|
+
const DisableWebSecurityOption_1 = __importDefault(require("../options/e2e/DisableWebSecurityOption"));
|
|
39
|
+
const EnableJSRewriteOption_1 = __importDefault(require("../options/e2e/EnableJSRewriteOption"));
|
|
37
40
|
class FBWarmupAppCommand extends BaseCommand_1.default {
|
|
38
41
|
getCommandName() {
|
|
39
42
|
return 'warmup';
|
|
@@ -59,8 +62,11 @@ class FBWarmupAppCommand extends BaseCommand_1.default {
|
|
|
59
62
|
new RemoteBrowserDebugOption_1.default(),
|
|
60
63
|
new ScenarioFileOption_1.default(),
|
|
61
64
|
new SetDeviceOption_1.default(),
|
|
65
|
+
new SetUserAgentOption_1.default(),
|
|
62
66
|
new DisableXvfbOption_1.default(),
|
|
67
|
+
new DisableWebSecurityOption_1.default(),
|
|
63
68
|
new SkipWarmupOption_1.default(),
|
|
69
|
+
new EnableJSRewriteOption_1.default(),
|
|
64
70
|
];
|
|
65
71
|
}
|
|
66
72
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
12
|
if (k2 === undefined) k2 = k;
|
|
@@ -49,7 +49,7 @@ const BaseCommand_1 = __importStar(require("../../BaseCommand"));
|
|
|
49
49
|
const core_1 = require("@memlab/core");
|
|
50
50
|
const SnapshotFileOption_1 = __importDefault(require("../../options/heap/SnapshotFileOption"));
|
|
51
51
|
const JSEngineOption_1 = __importDefault(require("../../options/heap/JSEngineOption"));
|
|
52
|
-
const HeapNodeIdOption_1 = __importDefault(require("../../options/HeapNodeIdOption"));
|
|
52
|
+
const HeapNodeIdOption_1 = __importDefault(require("../../options/heap/HeapNodeIdOption"));
|
|
53
53
|
const SnapshotDirectoryOption_1 = __importDefault(require("../../options/heap/SnapshotDirectoryOption"));
|
|
54
54
|
const core_2 = require("@memlab/core");
|
|
55
55
|
function calculateRetainerTrace() {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*
|
|
8
8
|
* @format
|
|
9
|
-
* @oncall
|
|
9
|
+
* @oncall web_perf_infra
|
|
10
10
|
*/
|
|
11
11
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
12
|
if (k2 === undefined) k2 = k;
|
|
@@ -51,7 +51,7 @@ const BaseCommand_1 = __importStar(require("../../../BaseCommand"));
|
|
|
51
51
|
const SnapshotFileOption_1 = __importDefault(require("../../../options/heap/SnapshotFileOption"));
|
|
52
52
|
const JSEngineOption_1 = __importDefault(require("../../../options/heap/JSEngineOption"));
|
|
53
53
|
const CliScreen_1 = __importDefault(require("./ui-components/CliScreen"));
|
|
54
|
-
const HeapNodeIdOption_1 = __importDefault(require("../../../options/HeapNodeIdOption"));
|
|
54
|
+
const HeapNodeIdOption_1 = __importDefault(require("../../../options/heap/HeapNodeIdOption"));
|
|
55
55
|
const MLClusteringOption_1 = __importDefault(require("../../../options/MLClusteringOption"));
|
|
56
56
|
class InteractiveHeapViewCommand extends BaseCommand_1.default {
|
|
57
57
|
getCommandName() {
|