UNPKG

@memlab/cli

Version:

command line interface for memlab

81 lines (80 loc) 2.6 kB
"use strict"; /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @oncall memory_lab */ Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@memlab/core"); const optionNames = { APP: 'app', BASELINE: 'baseline', CLEAN_UP_SNAPSHOT: 'clean-up-snapshot', CONTINUS_TEST: 'ContinuousTest', CONTROL_SNAPSHOT: 'control-snapshot', CONTROL_WORK_DIR: 'control-work-dir', CHROMIUM_BINARY: 'chromium-binary', CHROMIUM_PROTOCOL_TIMEOUT: 'protocol-timeout', DEVICE: 'device', DISABLE_WEB_SECURITY: 'disable-web-security', DISABLE_XVFB: 'disable-xvfb', DISPLAY_LEAK_OUTLINES: 'display-leak-outlines', ENGINE: 'engine', FINAL: 'final', FULL: 'full', HEADFUL: 'headful', HEAP_ANALYSIS_PLUGIN_FILE: 'analysis-plugin', HEAP_PARSER_DICT_FAST_STORE_SIZE: 'heap-parser-dict-fast-store-size', HELP: 'help', IGNORE_LEAK_CLUSTER_SIZE_BELOW: 'ignore-leak-cluster-size-below', INTERACTION: 'interaction', LEAK_FILTER: 'leak-filter', LOCAL_PUPPETEER: 'local-puppeteer', LOG_SCRIPT: 'log-script', MAX_CLUSTER_SAMPLE_SIZE: 'max-cluster-sample-size', ML_CLUSTERING: 'ml-clustering', ML_CLUSTERING_MAX_DF: 'ml-clustering-max-df', ML_LINKAGE_MAX_DIST: 'ml-linkage-max-dist', NODE_ID: 'node-id', REWRITE_JS: 'rewrite-js', RUN_MODE: 'run-mode', RUN_NUM: 'run-num', SAVE_TRACE_AS_UNCLASSIFIED_CLUSTER: 'save-trace-as-unclassified-cluster', SC: 'sc', SCENARIO: 'scenario', SILENT: 'silent', SKIP_EXTRA_OP: 'skip-extra-op', SKIP_EXTRA_OPS: 'skip-extra-ops', SKIP_GC: 'skip-gc', SKIP_SCREENSHOT: 'skip-screenshot', SKIP_SCROLL: 'skip-scroll', SKIP_SNAPSHOT: 'skip-snapshot', SKIP_WARMUP: 'skip-warmup', SNAPSHOT: 'snapshot', SNAPSHOT_DIR: 'snapshot-dir', TARGET: 'target', TRACE_ALL_OBJECTS: 'trace-all-objects', TRACE_CONTAINS: 'trace-contains', TRACE_OBJECT_SIZE_ABOVE: 'trace-object-size-above', TREATMENT_SNAPSHOT: 'treatment-snapshot', TREATMENT_WORK_DIR: 'treatment-work-dir', USER_AGENT: 'user-agent', VERBOSE: 'verbose', WORK_DIR: 'work-dir', WORKER_TITLE: 'worker', DEBUG: 'debug', }; const optionShortcuts = { H: 'h', S: 's', V: 'v', }; const optionConstants = { optionNames, optionShortcuts, }; exports.default = (0, core_1.setInternalValue)(optionConstants, __filename, core_1.constant.internalDir);