@memlab/cli 1.0.42 → 1.0.44
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/bin/memlab.js +1 -1
- package/bin/preinstall +1 -1
- package/dist/BaseCommand.d.ts +2 -2
- package/dist/BaseCommand.d.ts.map +1 -1
- package/dist/BaseCommand.js +3 -3
- package/dist/CommandLoader.d.ts +1 -1
- package/dist/CommandLoader.js +1 -1
- package/dist/Dispatcher.d.ts +1 -1
- package/dist/Dispatcher.js +7 -7
- package/dist/commands/CleanLoggerDataCommand.d.ts +1 -1
- package/dist/commands/CleanLoggerDataCommand.js +2 -2
- package/dist/commands/CleanRunDataCommand.d.ts +1 -1
- package/dist/commands/CleanRunDataCommand.js +2 -2
- 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 +2 -2
- 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 +19 -9
- package/dist/commands/PrintSummaryCommand.d.ts +1 -1
- package/dist/commands/PrintSummaryCommand.js +2 -2
- package/dist/commands/ResetDirectoryCommand.d.ts +1 -1
- package/dist/commands/ResetDirectoryCommand.js +2 -2
- package/dist/commands/RunMeasureCommand.d.ts +2 -2
- package/dist/commands/RunMeasureCommand.d.ts.map +1 -1
- package/dist/commands/RunMeasureCommand.js +4 -2
- package/dist/commands/WarmupAppCommand.d.ts +1 -1
- package/dist/commands/WarmupAppCommand.d.ts.map +1 -1
- package/dist/commands/WarmupAppCommand.js +3 -1
- package/dist/commands/heap/CheckLeakCommand.d.ts +2 -2
- package/dist/commands/heap/CheckLeakCommand.d.ts.map +1 -1
- package/dist/commands/heap/CheckLeakCommand.js +21 -11
- package/dist/commands/heap/DiffLeakCommand.d.ts +1 -1
- package/dist/commands/heap/DiffLeakCommand.js +17 -7
- package/dist/commands/heap/GetRetainerTraceCommand.d.ts +1 -1
- package/dist/commands/heap/GetRetainerTraceCommand.js +19 -9
- package/dist/commands/heap/HeapAnalysisCommand.d.ts +1 -1
- package/dist/commands/heap/HeapAnalysisCommand.js +19 -9
- package/dist/commands/heap/HeapAnalysisSubCommandWrapper.d.ts +1 -1
- package/dist/commands/heap/HeapAnalysisSubCommandWrapper.js +18 -8
- 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 +19 -9
- package/dist/commands/heap/interactive/InteractiveHeapExploreCommand.d.ts +1 -1
- package/dist/commands/heap/interactive/InteractiveHeapExploreCommand.js +19 -9
- package/dist/commands/heap/interactive/ui-components/CliScreen.js +1 -1
- package/dist/commands/heap/interactive/ui-components/HeapViewUtils.d.ts +1 -1
- package/dist/commands/heap/interactive/ui-components/HeapViewUtils.js +6 -6
- package/dist/commands/heap/interactive/ui-components/ListComponent.d.ts +1 -1
- package/dist/commands/heap/interactive/ui-components/ListComponent.js +1 -1
- package/dist/commands/heap/interactive/worker/LocateClosureSourceWorker.d.ts +1 -1
- package/dist/commands/heap/interactive/worker/LocateClosureSourceWorker.js +1 -1
- package/dist/commands/helper/GenerateCLIDocCommand.d.ts +1 -1
- package/dist/commands/helper/GenerateCLIDocCommand.js +19 -9
- package/dist/commands/helper/HelperCommand.d.ts +1 -1
- package/dist/commands/helper/HelperCommand.js +21 -11
- package/dist/commands/helper/lib/CommandOrder.d.ts +1 -1
- package/dist/commands/helper/lib/CommandOrder.js +1 -1
- package/dist/commands/helper/lib/DocUtils.d.ts +1 -1
- package/dist/commands/helper/lib/DocUtils.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 +18 -8
- 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 +2 -3
- package/dist/commands/snapshot/TakeSnapshotCommand.d.ts +1 -1
- package/dist/commands/snapshot/TakeSnapshotCommand.d.ts.map +1 -1
- package/dist/commands/snapshot/TakeSnapshotCommand.js +3 -1
- package/dist/commands/snapshot/WarmupAndSnapshotCommand.d.ts +2 -2
- package/dist/commands/snapshot/WarmupAndSnapshotCommand.d.ts.map +1 -1
- package/dist/commands/snapshot/WarmupAndSnapshotCommand.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -3
- package/dist/lib/CLIUtils.d.ts +1 -1
- package/dist/lib/CLIUtils.js +5 -5
- 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/SetMaxClusterSampleSizeOption.d.ts +1 -1
- package/dist/options/SetMaxClusterSampleSizeOption.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/constant.d.ts +1 -1
- package/dist/options/constant.js +1 -1
- package/dist/options/e2e/AppOption.d.ts +1 -1
- package/dist/options/e2e/AppOption.js +1 -1
- package/dist/options/e2e/DisableWebSecurityOption.d.ts +1 -1
- package/dist/options/e2e/DisableWebSecurityOption.js +1 -1
- package/dist/options/e2e/DisableXvfbOption.d.ts +1 -1
- package/dist/options/e2e/DisableXvfbOption.js +1 -1
- package/dist/options/e2e/DisplayLeakOutlinesOptions.d.ts +18 -0
- package/dist/options/e2e/DisplayLeakOutlinesOptions.d.ts.map +1 -0
- package/dist/options/e2e/DisplayLeakOutlinesOptions.js +42 -0
- package/dist/options/e2e/EnableJSInterceptOption.d.ts +1 -1
- package/dist/options/e2e/EnableJSInterceptOption.js +1 -1
- package/dist/options/e2e/EnableJSRewriteOption.d.ts +1 -1
- package/dist/options/e2e/EnableJSRewriteOption.js +1 -1
- package/dist/options/e2e/FullExecutionOption.d.ts +1 -1
- package/dist/options/e2e/FullExecutionOption.js +1 -1
- package/dist/options/e2e/HeadfulBrowserOption.d.ts +1 -1
- package/dist/options/e2e/HeadfulBrowserOption.js +1 -1
- package/dist/options/e2e/InteractionOption.d.ts +1 -1
- package/dist/options/e2e/InteractionOption.js +1 -1
- package/dist/options/e2e/RemoteBrowserDebugOption.d.ts +1 -1
- package/dist/options/e2e/RemoteBrowserDebugOption.js +1 -1
- package/dist/options/e2e/RunningModeOption.d.ts +1 -1
- package/dist/options/e2e/RunningModeOption.js +1 -1
- package/dist/options/e2e/ScenarioFileOption.d.ts +1 -1
- package/dist/options/e2e/ScenarioFileOption.js +1 -1
- package/dist/options/e2e/SetChromiumBinaryOption.d.ts +1 -1
- package/dist/options/e2e/SetChromiumProtocolTimeoutOption.d.ts +1 -1
- package/dist/options/e2e/SetDeviceOption.d.ts +1 -1
- package/dist/options/e2e/SetDeviceOption.js +1 -1
- package/dist/options/e2e/SetUserAgentOption.d.ts +1 -1
- package/dist/options/e2e/SetUserAgentOption.js +1 -1
- package/dist/options/e2e/SkipExtraOperationOption.d.ts +1 -1
- package/dist/options/e2e/SkipExtraOperationOption.js +1 -1
- package/dist/options/e2e/SkipGCOption.d.ts +1 -1
- package/dist/options/e2e/SkipGCOption.js +1 -1
- package/dist/options/e2e/SkipScreenshotOption.d.ts +1 -1
- package/dist/options/e2e/SkipScreenshotOption.js +1 -1
- package/dist/options/e2e/SkipScrollOption.d.ts +1 -1
- package/dist/options/e2e/SkipScrollOption.js +1 -1
- package/dist/options/e2e/SkipSnapshotOption.d.ts +1 -1
- package/dist/options/e2e/SkipSnapshotOption.js +1 -1
- package/dist/options/e2e/SkipWarmupOption.d.ts +1 -1
- package/dist/options/e2e/SkipWarmupOption.js +1 -1
- package/dist/options/e2e/TargetWorkerOption.d.ts +1 -1
- package/dist/options/e2e/TargetWorkerOption.js +1 -1
- package/dist/options/experiment/ExperimentOptionUtils.d.ts +1 -1
- package/dist/options/experiment/ExperimentOptionUtils.js +2 -3
- package/dist/options/experiment/SetControlSnapshotOption.d.ts +1 -1
- package/dist/options/experiment/SetControlSnapshotOption.js +1 -1
- package/dist/options/experiment/SetControlWorkDirOption.d.ts +1 -1
- package/dist/options/experiment/SetControlWorkDirOption.js +1 -1
- package/dist/options/experiment/SetTreatmentSnapshotOption.d.ts +1 -1
- package/dist/options/experiment/SetTreatmentSnapshotOption.js +1 -1
- package/dist/options/experiment/SetTreatmentWorkDirOption.d.ts +1 -1
- package/dist/options/experiment/SetTreatmentWorkDirOption.js +1 -1
- package/dist/options/experiment/utils/ExperimentOptionsUtils.d.ts +1 -1
- package/dist/options/experiment/utils/ExperimentOptionsUtils.js +3 -4
- package/dist/options/heap/BaselineFileOption.d.ts +1 -1
- package/dist/options/heap/BaselineFileOption.js +1 -1
- package/dist/options/heap/CleanupSnapshotOption.d.ts +1 -1
- package/dist/options/heap/CleanupSnapshotOption.js +1 -1
- package/dist/options/heap/FinalFileOption.d.ts +1 -1
- package/dist/options/heap/FinalFileOption.js +1 -1
- package/dist/options/heap/HeapAnalysisPluginOption.d.ts +1 -1
- package/dist/options/heap/HeapAnalysisPluginOption.js +1 -1
- package/dist/options/heap/HeapNodeIdOption.d.ts +1 -1
- package/dist/options/heap/HeapNodeIdOption.js +1 -1
- package/dist/options/heap/HeapParserDictFastStoreSizeOption.d.ts +1 -1
- package/dist/options/heap/HeapParserDictFastStoreSizeOption.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/SetTraceContainsFilterOption.d.ts +1 -1
- package/dist/options/heap/SetTraceContainsFilterOption.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 +2 -3
- 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 +3 -4
- 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.d.ts.map +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/OptionConstant.d.ts +3 -1
- package/dist/options/lib/OptionConstant.d.ts.map +1 -1
- package/dist/options/lib/OptionConstant.js +2 -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 +2 -3
- package/package.json +7 -7
package/bin/memlab.js
CHANGED
package/bin/preinstall
CHANGED
package/dist/BaseCommand.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
* @format
|
|
8
|
-
* @oncall
|
|
8
|
+
* @oncall memory_lab
|
|
9
9
|
*/
|
|
10
10
|
import type { CLIOptions, CommandOptionExample, Nullable, Optional } from '@memlab/core';
|
|
11
11
|
import { BaseOption } from '@memlab/core';
|
|
@@ -27,7 +27,7 @@ export default class BaseCommand extends Command {
|
|
|
27
27
|
getExamples(): CommandOptionExample[];
|
|
28
28
|
getCategory(): CommandCategory;
|
|
29
29
|
getDescription(): string;
|
|
30
|
-
|
|
30
|
+
getDocumentation(): string;
|
|
31
31
|
getPrerequisites(): BaseCommand[];
|
|
32
32
|
isInternalCommand(): boolean;
|
|
33
33
|
getOptions(): BaseOption[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseCommand.d.ts","sourceRoot":"","sources":["../src/BaseCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACT,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,uBAAe,OAAO;IACpB,cAAc,IAAI,MAAM;IAUxB,OAAO,CAAC,aAAa,CAA+B;IAEpD,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAI3C,gBAAgB,IAAI,QAAQ,CAAC,WAAW,CAAC;IAIzC,cAAc,IAAI,MAAM;IAOxB,mCAAmC,IAAI,UAAU,EAAE;CA6BpD;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,OAAO;IAG9C,cAAc,IAAI,MAAM;IAOxB,WAAW,IAAI,oBAAoB,EAAE;IAMrC,WAAW,IAAI,eAAe;IAM9B,cAAc,IAAI,MAAM;IAQxB,
|
|
1
|
+
{"version":3,"file":"BaseCommand.d.ts","sourceRoot":"","sources":["../src/BaseCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,oBAAoB,EACpB,QAAQ,EACR,QAAQ,EACT,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AAExC,oBAAY,eAAe;IACzB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,uBAAe,OAAO;IACpB,cAAc,IAAI,MAAM;IAUxB,OAAO,CAAC,aAAa,CAA+B;IAEpD,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAI3C,gBAAgB,IAAI,QAAQ,CAAC,WAAW,CAAC;IAIzC,cAAc,IAAI,MAAM;IAOxB,mCAAmC,IAAI,UAAU,EAAE;CA6BpD;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,OAAO;IAG9C,cAAc,IAAI,MAAM;IAOxB,WAAW,IAAI,oBAAoB,EAAE;IAMrC,WAAW,IAAI,eAAe;IAM9B,cAAc,IAAI,MAAM;IAQxB,gBAAgB,IAAI,MAAM;IAM1B,gBAAgB,IAAI,WAAW,EAAE;IAKjC,iBAAiB,IAAI,OAAO;IAK5B,UAAU,IAAI,UAAU,EAAE;IAQ1B,kBAAkB,IAAI,UAAU,EAAE;IAYlC,cAAc,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;IAOnC,GAAG,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAI/C"}
|
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 memory_lab
|
|
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,7 +24,7 @@ var CommandCategory;
|
|
|
24
24
|
CommandCategory["COMMON"] = "COMMON";
|
|
25
25
|
CommandCategory["DEV"] = "DEV";
|
|
26
26
|
CommandCategory["MISC"] = "MISC";
|
|
27
|
-
})(CommandCategory
|
|
27
|
+
})(CommandCategory || (exports.CommandCategory = CommandCategory = {}));
|
|
28
28
|
class Command {
|
|
29
29
|
constructor() {
|
|
30
30
|
// If you are trying to add a new CLI command in MemLab,
|
|
@@ -104,7 +104,7 @@ class BaseCommand extends Command {
|
|
|
104
104
|
// More detailed description or documentation about this command.
|
|
105
105
|
// This will be printed as helper text in CLI for a specific command.
|
|
106
106
|
// Documentation generator will also use the description returned here.
|
|
107
|
-
|
|
107
|
+
getDocumentation() {
|
|
108
108
|
return '';
|
|
109
109
|
}
|
|
110
110
|
// get a sequence of commands that must be executed before
|
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 memory_lab
|
|
10
10
|
*/
|
|
11
11
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
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 memory_lab
|
|
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); }); }
|
|
@@ -112,9 +112,9 @@ class CommandDispatcher {
|
|
|
112
112
|
}
|
|
113
113
|
return arr1;
|
|
114
114
|
}
|
|
115
|
-
runCommand(
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
runCommand(command_1, args_1) {
|
|
116
|
+
return __awaiter(this, arguments, void 0, function* (command, args, runCmdOpt = { configFromOptions: {} }) {
|
|
117
|
+
var _a;
|
|
118
118
|
const commandName = command.getCommandName();
|
|
119
119
|
// make sure commands on the prerequisite are only executed once
|
|
120
120
|
if (this.executedCommands.has(commandName)) {
|
|
@@ -149,8 +149,8 @@ class CommandDispatcher {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
runSubCommandIfAny(command, args, runCmdOpt) {
|
|
152
|
-
var _a;
|
|
153
152
|
return __awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
var _a;
|
|
154
154
|
const subCommandIndex = (_a = runCmdOpt.commandIndex) !== null && _a !== void 0 ? _a : 0;
|
|
155
155
|
if (args._.length <= subCommandIndex) {
|
|
156
156
|
return;
|
|
@@ -170,8 +170,8 @@ class CommandDispatcher {
|
|
|
170
170
|
yield this.helper(args, command);
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
helper(
|
|
174
|
-
return __awaiter(this,
|
|
173
|
+
helper(cliArgs_1) {
|
|
174
|
+
return __awaiter(this, arguments, void 0, function* (cliArgs, command = null) {
|
|
175
175
|
yield helperCommand.run({
|
|
176
176
|
modules: this.modules,
|
|
177
177
|
command,
|
|
@@ -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 memory_lab
|
|
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); }); }
|
|
@@ -39,8 +39,8 @@ class CleanTraceDataCommand extends BaseCommand_1.default {
|
|
|
39
39
|
return [new SetWorkingDirectoryOption_1.default()];
|
|
40
40
|
}
|
|
41
41
|
run(options) {
|
|
42
|
-
var _a;
|
|
43
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
var _a;
|
|
44
44
|
const workDir = (_a = options.configFromOptions) === null || _a === void 0 ? void 0 : _a.workDir;
|
|
45
45
|
core_1.fileManager.emptyTraceLogDataDir({ workDir });
|
|
46
46
|
yield new InitDirectoryCommand_1.default().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 memory_lab
|
|
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); }); }
|
|
@@ -38,8 +38,8 @@ class CleanRunDataCommand extends BaseCommand_1.default {
|
|
|
38
38
|
return [new SetWorkingDirectoryOption_1.default()];
|
|
39
39
|
}
|
|
40
40
|
run(options) {
|
|
41
|
-
var _a;
|
|
42
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
var _a;
|
|
43
43
|
const workDir = (_a = options.configFromOptions) === null || _a === void 0 ? void 0 : _a.workDir;
|
|
44
44
|
core_1.fileManager.clearDataDirs({ workDir });
|
|
45
45
|
});
|
|
@@ -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 memory_lab
|
|
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 memory_lab
|
|
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); }); }
|
|
@@ -38,8 +38,8 @@ class InitDirectoryCommand extends BaseCommand_1.default {
|
|
|
38
38
|
return [new SetWorkingDirectoryOption_1.default()];
|
|
39
39
|
}
|
|
40
40
|
run(options) {
|
|
41
|
-
var _a;
|
|
42
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
var _a;
|
|
43
43
|
const workDir = (_a = options.configFromOptions) === null || _a === void 0 ? void 0 : _a.workDir;
|
|
44
44
|
core_1.fileManager.initDirs(core_1.config, { workDir });
|
|
45
45
|
});
|
|
@@ -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 memory_lab
|
|
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); }); }
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
* @format
|
|
8
|
-
* @oncall
|
|
8
|
+
* @oncall memory_lab
|
|
9
9
|
*/
|
|
10
10
|
import type { BaseOption, CLIOptions, CommandOptionExample } from '@memlab/core';
|
|
11
11
|
import BaseCommand, { CommandCategory } from '../BaseCommand';
|
|
@@ -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 memory_lab
|
|
10
10
|
*/
|
|
11
11
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
12
|
if (k2 === undefined) k2 = k;
|
|
@@ -24,13 +24,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
24
24
|
}) : function(o, v) {
|
|
25
25
|
o["default"] = v;
|
|
26
26
|
});
|
|
27
|
-
var __importStar = (this && this.__importStar) || function (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
27
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
28
|
+
var ownKeys = function(o) {
|
|
29
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
30
|
+
var ar = [];
|
|
31
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
32
|
+
return ar;
|
|
33
|
+
};
|
|
34
|
+
return ownKeys(o);
|
|
35
|
+
};
|
|
36
|
+
return function (mod) {
|
|
37
|
+
if (mod && mod.__esModule) return mod;
|
|
38
|
+
var result = {};
|
|
39
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
40
|
+
__setModuleDefault(result, mod);
|
|
41
|
+
return result;
|
|
42
|
+
};
|
|
43
|
+
})();
|
|
34
44
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
35
45
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
36
46
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -104,8 +114,8 @@ class MemLabRunCommand extends BaseCommand_1.default {
|
|
|
104
114
|
return BaseCommand_1.CommandCategory.COMMON;
|
|
105
115
|
}
|
|
106
116
|
run(options) {
|
|
107
|
-
var _a;
|
|
108
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
var _a;
|
|
109
119
|
// move leaks.txt file
|
|
110
120
|
const workDir = (_a = options.configFromOptions) === null || _a === void 0 ? void 0 : _a.workDir;
|
|
111
121
|
const outDir = core_1.fileManager.getDataOutDir({ workDir });
|
|
@@ -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 memory_lab
|
|
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); }); }
|
|
@@ -40,8 +40,8 @@ class PrintSummaryCommand extends BaseCommand_1.default {
|
|
|
40
40
|
return [new SetWorkingDirectoryOption_1.default()];
|
|
41
41
|
}
|
|
42
42
|
run(options) {
|
|
43
|
-
var _a;
|
|
44
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
var _a;
|
|
45
45
|
const workDir = (_a = options.configFromOptions) === null || _a === void 0 ? void 0 : _a.workDir;
|
|
46
46
|
const summaryFile = core_2.fileManager.getLeakSummaryFile({ workDir });
|
|
47
47
|
if (!fs_extra_1.default.existsSync(summaryFile)) {
|
|
@@ -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 memory_lab
|
|
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); }); }
|
|
@@ -35,8 +35,8 @@ class ResetDirectoryCommand extends BaseCommand_1.default {
|
|
|
35
35
|
return [new SetWorkingDirectoryOption_1.default()];
|
|
36
36
|
}
|
|
37
37
|
run(options) {
|
|
38
|
-
var _a;
|
|
39
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
var _a;
|
|
40
40
|
const workDir = (_a = options.configFromOptions) === null || _a === void 0 ? void 0 : _a.workDir;
|
|
41
41
|
core_1.fileManager.rmWorkDir({ workDir });
|
|
42
42
|
core_1.fileManager.initDirs(core_1.config, { workDir });
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
* @format
|
|
8
|
-
* @oncall
|
|
8
|
+
* @oncall memory_lab
|
|
9
9
|
*/
|
|
10
10
|
import type { CLIOptions, CommandOptionExample } from '@memlab/core';
|
|
11
11
|
import BaseCommand from '../BaseCommand';
|
|
@@ -16,7 +16,7 @@ export default class RunMeasureCommand extends BaseCommand {
|
|
|
16
16
|
getPrerequisites(): BaseCommand[];
|
|
17
17
|
getExamples(): CommandOptionExample[];
|
|
18
18
|
getOptions(): BaseOption[];
|
|
19
|
-
|
|
19
|
+
getDocumentation(): string;
|
|
20
20
|
run(options: CLIOptions): Promise<void>;
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=RunMeasureCommand.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunMeasureCommand.d.ts","sourceRoot":"","sources":["../../src/commands/RunMeasureCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAE,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAEnE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAgB,UAAU,EAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"RunMeasureCommand.d.ts","sourceRoot":"","sources":["../../src/commands/RunMeasureCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAE,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAEnE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAgB,UAAU,EAAC,MAAM,cAAc,CAAC;AA0BvD,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,WAAW;IACxD,cAAc,IAAI,MAAM;IAIxB,cAAc,IAAI,MAAM;IAIxB,gBAAgB,IAAI,WAAW,EAAE;IAIjC,WAAW,IAAI,oBAAoB,EAAE;IAQrC,UAAU,IAAI,UAAU,EAAE;IA2B1B,gBAAgB,IAAI,MAAM;IAYpB,GAAG,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAS9C"}
|
|
@@ -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 memory_lab
|
|
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); }); }
|
|
@@ -42,6 +42,7 @@ const SetUserAgentOption_1 = __importDefault(require("../options/e2e/SetUserAgen
|
|
|
42
42
|
const DisableXvfbOption_1 = __importDefault(require("../options/e2e/DisableXvfbOption"));
|
|
43
43
|
const NumberOfRunsOption_1 = __importDefault(require("../options/NumberOfRunsOption"));
|
|
44
44
|
const HeadfulBrowserOption_1 = __importDefault(require("../options/e2e/HeadfulBrowserOption"));
|
|
45
|
+
const DisplayLeakOutlinesOptions_1 = __importDefault(require("../options/e2e/DisplayLeakOutlinesOptions"));
|
|
45
46
|
const DisableWebSecurityOption_1 = __importDefault(require("../options/e2e/DisableWebSecurityOption"));
|
|
46
47
|
const EnableJSRewriteOption_1 = __importDefault(require("../options/e2e/EnableJSRewriteOption"));
|
|
47
48
|
const EnableJSInterceptOption_1 = __importDefault(require("../options/e2e/EnableJSInterceptOption"));
|
|
@@ -67,6 +68,7 @@ class RunMeasureCommand extends BaseCommand_1.default {
|
|
|
67
68
|
getOptions() {
|
|
68
69
|
return [
|
|
69
70
|
new HeadfulBrowserOption_1.default(),
|
|
71
|
+
new DisplayLeakOutlinesOptions_1.default(),
|
|
70
72
|
new NumberOfRunsOption_1.default(),
|
|
71
73
|
new AppOption_1.default(),
|
|
72
74
|
new InteractionOption_1.default(),
|
|
@@ -89,7 +91,7 @@ class RunMeasureCommand extends BaseCommand_1.default {
|
|
|
89
91
|
new EnableJSInterceptOption_1.default(),
|
|
90
92
|
];
|
|
91
93
|
}
|
|
92
|
-
|
|
94
|
+
getDocumentation() {
|
|
93
95
|
return ('In some web apps, the heap size can show considerable variability' +
|
|
94
96
|
' across various runs. This fluctuation can often make it hard to' +
|
|
95
97
|
' understand the impact of memory leaks. The introduction of the measure' +
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WarmupAppCommand.d.ts","sourceRoot":"","sources":["../../src/commands/WarmupAppCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAE,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAEnE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,WAAW,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"WarmupAppCommand.d.ts","sourceRoot":"","sources":["../../src/commands/WarmupAppCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAC,UAAU,EAAE,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAEnE,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAqBzC,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,WAAW;IACzD,cAAc,IAAI,MAAM;IAIxB,cAAc,IAAI,MAAM;IAIxB,gBAAgB,IAAI,WAAW,EAAE;IAIjC,WAAW,IAAI,oBAAoB,EAAE;IAOrC,UAAU,IAAI,UAAU,EAAE;IAsBpB,GAAG,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAG/C"}
|
|
@@ -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 memory_lab
|
|
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); }); }
|
|
@@ -35,6 +35,7 @@ const DisableXvfbOption_1 = __importDefault(require("../options/e2e/DisableXvfbO
|
|
|
35
35
|
const SkipWarmupOption_1 = __importDefault(require("../options/e2e/SkipWarmupOption"));
|
|
36
36
|
const CheckXvfbSupportCommand_1 = __importDefault(require("./snapshot/CheckXvfbSupportCommand"));
|
|
37
37
|
const HeadfulBrowserOption_1 = __importDefault(require("../options/e2e/HeadfulBrowserOption"));
|
|
38
|
+
const DisplayLeakOutlinesOptions_1 = __importDefault(require("../options/e2e/DisplayLeakOutlinesOptions"));
|
|
38
39
|
const DisableWebSecurityOption_1 = __importDefault(require("../options/e2e/DisableWebSecurityOption"));
|
|
39
40
|
const EnableJSRewriteOption_1 = __importDefault(require("../options/e2e/EnableJSRewriteOption"));
|
|
40
41
|
const EnableJSInterceptOption_1 = __importDefault(require("../options/e2e/EnableJSInterceptOption"));
|
|
@@ -59,6 +60,7 @@ class FBWarmupAppCommand extends BaseCommand_1.default {
|
|
|
59
60
|
getOptions() {
|
|
60
61
|
return [
|
|
61
62
|
new HeadfulBrowserOption_1.default(),
|
|
63
|
+
new DisplayLeakOutlinesOptions_1.default(),
|
|
62
64
|
new AppOption_1.default(),
|
|
63
65
|
new InteractionOption_1.default(),
|
|
64
66
|
new RunningModeOption_1.default(),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
* @format
|
|
8
|
-
* @oncall
|
|
8
|
+
* @oncall memory_lab
|
|
9
9
|
*/
|
|
10
10
|
import type { ParsedArgs } from 'minimist';
|
|
11
11
|
import type { BaseOption, CLIOptions, CommandOptionExample } from '@memlab/core';
|
|
@@ -22,7 +22,7 @@ export default class CheckLeakCommand extends BaseCommand {
|
|
|
22
22
|
getCommandName(): string;
|
|
23
23
|
getExamples(): CommandOptionExample[];
|
|
24
24
|
getDescription(): string;
|
|
25
|
-
|
|
25
|
+
getDocumentation(): string;
|
|
26
26
|
getCategory(): CommandCategory;
|
|
27
27
|
getPrerequisites(): BaseCommand[];
|
|
28
28
|
getOptions(): BaseOption[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckLeakCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/heap/CheckLeakCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,oBAAoB,EAErB,MAAM,cAAc,CAAC;AAEtB,OAAO,WAAW,EAAE,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAsB/D,MAAM,MAAM,uBAAuB,GAAG;IACpC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,0BAA0B,CAAS;IAE3C,SAAS,CAAC,6BAA6B,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;IAOlE,SAAS,CAAC,iCAAiC,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;gBAM1D,OAAO,GAAE,uBAA4B;IAKjD,cAAc,IAAI,MAAM;IAIxB,WAAW,IAAI,oBAAoB,EAAE;IAgCrC,cAAc,IAAI,MAAM;IAIxB,
|
|
1
|
+
{"version":3,"file":"CheckLeakCommand.d.ts","sourceRoot":"","sources":["../../../src/commands/heap/CheckLeakCommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,oBAAoB,EAErB,MAAM,cAAc,CAAC;AAEtB,OAAO,WAAW,EAAE,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAsB/D,MAAM,MAAM,uBAAuB,GAAG;IACpC,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,WAAW;IACvD,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,0BAA0B,CAAS;IAE3C,SAAS,CAAC,6BAA6B,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;IAOlE,SAAS,CAAC,iCAAiC,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI;gBAM1D,OAAO,GAAE,uBAA4B;IAKjD,cAAc,IAAI,MAAM;IAIxB,WAAW,IAAI,oBAAoB,EAAE;IAgCrC,cAAc,IAAI,MAAM;IAIxB,gBAAgB,IAAI,MAAM;IAqB1B,WAAW,IAAI,eAAe;IAI9B,gBAAgB,IAAI,WAAW,EAAE;IAIjC,UAAU,IAAI,UAAU,EAAE;IAqBpB,GAAG,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;CAoB9C"}
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -95,7 +105,7 @@ class CheckLeakCommand extends BaseCommand_1.default {
|
|
|
95
105
|
cliOptionExample: `${baselineOption} /tmp/baseline.heapsnapshot ${targetOption} /tmp/target.heapsnapshot ${finalOption} /tmp/final.heapsnapshot`,
|
|
96
106
|
},
|
|
97
107
|
{
|
|
98
|
-
description: 'specifies the directory that
|
|
108
|
+
description: 'specifies the directory that contains all three heap snapshot files',
|
|
99
109
|
cliOptionExample: `${snapshotDirOption} /dir/containing/heapsnapshot/files/`,
|
|
100
110
|
},
|
|
101
111
|
{
|
|
@@ -107,7 +117,7 @@ class CheckLeakCommand extends BaseCommand_1.default {
|
|
|
107
117
|
getDescription() {
|
|
108
118
|
return 'find memory leaks in heap snapshots';
|
|
109
119
|
}
|
|
110
|
-
|
|
120
|
+
getDocumentation() {
|
|
111
121
|
const optionNames = OptionConstant_1.default.optionNames;
|
|
112
122
|
const workDirOption = `--${optionNames.WORK_DIR}`;
|
|
113
123
|
const snapshotDirOption = `--${optionNames.SNAPSHOT_DIR}`;
|
|
@@ -116,7 +126,7 @@ class CheckLeakCommand extends BaseCommand_1.default {
|
|
|
116
126
|
const finalOption = `--${optionNames.FINAL}`;
|
|
117
127
|
return `There are three ways to specify inputs for the \`memlab ${this.getCommandName()}\` command:
|
|
118
128
|
1. \`${baselineOption}\`, \`${targetOption}\`, \`${finalOption}\` specifies each heap snapshot input individually;
|
|
119
|
-
2. \`${snapshotDirOption}\` specifies the directory that
|
|
129
|
+
2. \`${snapshotDirOption}\` specifies the directory that contains all three heap snapshot files (MemLab will assign baseline, target, and final based on alphabetic order of the file);
|
|
120
130
|
3. \`${workDirOption}\` specifies the output working directory of the \`memlab run\` or the \`memlab snapshot\` command;
|
|
121
131
|
|
|
122
132
|
Please only use one of the three ways to specify the input.
|
|
@@ -153,8 +163,8 @@ or option 2 mentioned above).
|
|
|
153
163
|
];
|
|
154
164
|
}
|
|
155
165
|
run(options) {
|
|
156
|
-
var _a, _b;
|
|
157
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
var _a, _b;
|
|
158
168
|
const workDir = (_a = options.configFromOptions) === null || _a === void 0 ? void 0 : _a.workDir;
|
|
159
169
|
core_1.fileManager.initDirs(core_1.config, { workDir });
|
|
160
170
|
const { runMetaInfoManager } = core_1.runInfoUtils;
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|