@memlab/heap-analysis 1.0.37 → 1.0.38

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.
Files changed (51) hide show
  1. package/dist/BaseAnalysis.d.ts +1 -1
  2. package/dist/BaseAnalysis.js +7 -7
  3. package/dist/HeapAnalysisLoader.d.ts +1 -1
  4. package/dist/HeapAnalysisLoader.js +1 -1
  5. package/dist/HeapConfig.d.ts +1 -1
  6. package/dist/HeapConfig.js +1 -1
  7. package/dist/PluginUtils.d.ts +1 -1
  8. package/dist/PluginUtils.js +3 -3
  9. package/dist/__tests__/HeapAnalysis.test.d.ts +1 -1
  10. package/dist/__tests__/HeapAnalysis.test.js +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.js +3 -3
  13. package/dist/options/HeapAnalysisNodeIdOption.d.ts +1 -1
  14. package/dist/options/HeapAnalysisNodeIdOption.js +1 -1
  15. package/dist/options/HeapAnalysisOutputOption.d.ts +1 -1
  16. package/dist/options/HeapAnalysisOutputOption.js +1 -1
  17. package/dist/options/HeapAnalysisSnapshotDirectoryOption.d.ts +1 -1
  18. package/dist/options/HeapAnalysisSnapshotDirectoryOption.js +1 -1
  19. package/dist/options/HeapAnalysisSnapshotFileOption.d.ts +1 -1
  20. package/dist/options/HeapAnalysisSnapshotFileOption.js +1 -1
  21. package/dist/plugins/CollectionUnboundGrowthAnalysis.d.ts +1 -1
  22. package/dist/plugins/CollectionUnboundGrowthAnalysis.js +1 -1
  23. package/dist/plugins/CollectionsHoldingStaleAnalysis.d.ts +1 -1
  24. package/dist/plugins/CollectionsHoldingStaleAnalysis.js +1 -1
  25. package/dist/plugins/DetachedDOMElementAnalysis.d.ts +1 -1
  26. package/dist/plugins/DetachedDOMElementAnalysis.js +1 -1
  27. package/dist/plugins/GlobalVariableAnalysis/BuiltInGlobalVariables.d.ts +1 -1
  28. package/dist/plugins/GlobalVariableAnalysis/BuiltInGlobalVariables.js +1 -1
  29. package/dist/plugins/GlobalVariableAnalysis/GlobalVariableAnalysis.d.ts +1 -1
  30. package/dist/plugins/GlobalVariableAnalysis/GlobalVariableAnalysis.js +1 -1
  31. package/dist/plugins/ObjectContentAnalysis.d.ts +1 -1
  32. package/dist/plugins/ObjectContentAnalysis.js +1 -1
  33. package/dist/plugins/ObjectFanoutAnalysis.d.ts +1 -1
  34. package/dist/plugins/ObjectFanoutAnalysis.js +1 -1
  35. package/dist/plugins/ObjectShallowAnalysis.d.ts +1 -1
  36. package/dist/plugins/ObjectShallowAnalysis.js +1 -1
  37. package/dist/plugins/ObjectShapeAnalysis.d.ts +1 -1
  38. package/dist/plugins/ObjectShapeAnalysis.js +3 -3
  39. package/dist/plugins/ObjectSizeAnalysis.d.ts +1 -1
  40. package/dist/plugins/ObjectSizeAnalysis.js +1 -1
  41. package/dist/plugins/ObjectUnboundGrowthAnalysis.d.ts +1 -1
  42. package/dist/plugins/ObjectUnboundGrowthAnalysis.js +5 -5
  43. package/dist/plugins/ReactComponentHookAnalysis.d.ts +1 -1
  44. package/dist/plugins/ReactComponentHookAnalysis.js +3 -3
  45. package/dist/plugins/ShapeUnboundGrowthAnalysis.d.ts +1 -1
  46. package/dist/plugins/ShapeUnboundGrowthAnalysis.js +1 -1
  47. package/dist/plugins/StringAnalysis.d.ts +1 -1
  48. package/dist/plugins/StringAnalysis.js +2 -2
  49. package/dist/plugins/UnmountedReactFiberNodesAnalysis.d.ts +1 -1
  50. package/dist/plugins/UnmountedReactFiberNodesAnalysis.js +1 -1
  51. package/package.json +5 -5
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
- * @oncall web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnyValue, BaseOption } from '@memlab/core';
11
11
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions, RunHeapAnalysisOptions } from './PluginUtils';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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); }); }
@@ -59,8 +59,8 @@ class Analysis {
59
59
  * different return value format.
60
60
  * @internal
61
61
  */
62
- run(options = PluginUtils_1.default.defaultAnalysisArgs) {
63
- return __awaiter(this, void 0, void 0, function* () {
62
+ run() {
63
+ return __awaiter(this, arguments, void 0, function* (options = PluginUtils_1.default.defaultAnalysisArgs) {
64
64
  loadScenarioConfig();
65
65
  yield this.process(options);
66
66
  });
@@ -94,8 +94,8 @@ class Analysis {
94
94
  * });
95
95
  * ```
96
96
  */
97
- analyzeSnapshotFromFile(file, options = {}) {
98
- return __awaiter(this, void 0, void 0, function* () {
97
+ analyzeSnapshotFromFile(file_1) {
98
+ return __awaiter(this, arguments, void 0, function* (file, options = {}) {
99
99
  if (options.workDir) {
100
100
  // set and init the new work dir
101
101
  core_1.config.defaultFileManagerOption = options;
@@ -144,8 +144,8 @@ class Analysis {
144
144
  * });
145
145
  * ```
146
146
  */
147
- analyzeSnapshotsInDirectory(directory, options = {}) {
148
- return __awaiter(this, void 0, void 0, function* () {
147
+ analyzeSnapshotsInDirectory(directory_1) {
148
+ return __awaiter(this, arguments, void 0, function* (directory, options = {}) {
149
149
  if (options.workDir) {
150
150
  // set and init the new work dir
151
151
  core_1.config.defaultFileManagerOption = options;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
- * @oncall web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { Optional } from '@memlab/core';
11
11
  import type BaseAnalysis from './BaseAnalysis';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
9
+ * @oncall memory_lab
10
10
  */
11
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
- * @oncall web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { IHeapSnapshot, Optional, IHeapConfig } from '@memlab/core';
11
11
  declare class HeapConfig implements IHeapConfig {
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
9
+ * @oncall memory_lab
10
10
  */
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const core_1 = require("@memlab/core");
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
- * @oncall web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { ParsedArgs } from 'minimist';
11
11
  import { IHeapSnapshot, IHeapNode, AnyOptions, IHeapEdge, Nullable, MemLabConfig } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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); }); }
@@ -486,8 +486,8 @@ function getHeapFromFile(file) {
486
486
  return yield loadProcessedSnapshot({ file });
487
487
  });
488
488
  }
489
- function loadProcessedSnapshot(options = {}) {
490
- return __awaiter(this, void 0, void 0, function* () {
489
+ function loadProcessedSnapshot() {
490
+ return __awaiter(this, arguments, void 0, function* (options = {}) {
491
491
  const opt = { buildNodeIdIndex: true, verbose: true };
492
492
  const file = options.file || core_2.utils.getSnapshotFilePathWithTabType(/.*/);
493
493
  const snapshot = yield core_2.utils.getSnapshotFromFile(file, opt);
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
- * @oncall web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  export {};
11
11
  //# sourceMappingURL=HeapAnalysis.test.d.ts.map
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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); }); }
package/dist/index.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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  /** @internal */
11
11
  export declare function registerPackage(): Promise<void>;
package/dist/index.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 web_perf_infra
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); }); }
@@ -21,7 +21,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
21
21
  return (mod && mod.__esModule) ? mod : { "default": mod };
22
22
  };
23
23
  Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.heapConfig = exports.heapAnalysisLoader = exports.PluginUtils = exports.StringAnalysis = exports.ObjectUnboundGrowthAnalysis = exports.ObjectShapeAnalysis = exports.ObjectFanoutAnalysis = exports.ShapeUnboundGrowthAnalysis = exports.ObjectSizeAnalysis = exports.ObjectShallowAnalysis = exports.CollectionsHoldingStaleAnalysis = exports.GlobalVariableAnalysis = exports.DetachedDOMElementAnalysis = exports.BaseAnalysis = exports.takeNodeFullHeap = exports.snapshotMapReduce = exports.loadHeapSnapshot = exports.getSnapshotFileForAnalysis = exports.getSnapshotDirForAnalysis = exports.getFullHeapFromFile = exports.getHeapFromFile = exports.getDominatorNodes = exports.registerPackage = void 0;
24
+ exports.heapConfig = exports.heapAnalysisLoader = exports.PluginUtils = exports.StringAnalysis = exports.ObjectUnboundGrowthAnalysis = exports.ObjectShapeAnalysis = exports.ObjectFanoutAnalysis = exports.ShapeUnboundGrowthAnalysis = exports.ObjectSizeAnalysis = exports.ObjectShallowAnalysis = exports.CollectionsHoldingStaleAnalysis = exports.GlobalVariableAnalysis = exports.DetachedDOMElementAnalysis = exports.BaseAnalysis = exports.takeNodeFullHeap = exports.snapshotMapReduce = exports.loadHeapSnapshot = exports.getSnapshotFileForAnalysis = exports.getSnapshotDirForAnalysis = exports.getFullHeapFromFile = exports.getHeapFromFile = exports.getDominatorNodes = void 0;
25
+ exports.registerPackage = registerPackage;
25
26
  const path_1 = __importDefault(require("path"));
26
27
  const core_1 = require("@memlab/core");
27
28
  /** @internal */
@@ -30,7 +31,6 @@ function registerPackage() {
30
31
  return core_1.PackageInfoLoader.registerPackage(path_1.default.join(__dirname, '..'));
31
32
  });
32
33
  }
33
- exports.registerPackage = registerPackage;
34
34
  const PluginUtils_1 = __importDefault(require("./PluginUtils"));
35
35
  exports.getDominatorNodes = PluginUtils_1.default.getDominatorNodes,
36
36
  /** @deprecated */
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
- * @oncall web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { ParsedArgs } from 'minimist';
11
11
  import type { MemLabConfig } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { ParsedArgs } from 'minimist';
11
11
  import { MemLabConfig } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { ParsedArgs } from 'minimist';
11
11
  import { BaseOption, MemLabConfig } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { ParsedArgs } from 'minimist';
11
11
  import { BaseOption, MemLabConfig } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
11
11
  import type { BaseOption } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
11
11
  import { BaseOption } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
11
11
  import type { IHeapNode } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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
  *
7
7
  * @format
8
8
  * @lightSyntaxTransform
9
- * @oncall web_perf_infra
9
+ * @oncall memory_lab
10
10
  */
11
11
  declare const _default: Set<string>;
12
12
  export default _default;
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * @format
9
9
  * @lightSyntaxTransform
10
- * @oncall web_perf_infra
10
+ * @oncall memory_lab
11
11
  */
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.default = new Set([
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
- * @oncall web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../../PluginUtils';
11
11
  import { BaseOption } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
11
11
  import { BaseOption } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
11
11
  import { BaseOption } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
11
11
  import { BaseOption } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
11
11
  import type { BaseOption } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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); }); }
@@ -54,8 +54,8 @@ class ObjectShapeAnalysis extends BaseAnalysis_1.default {
54
54
  });
55
55
  }
56
56
  /** @internal */
57
- breakDownMemoryByShapes(options = {}) {
58
- return __awaiter(this, void 0, void 0, function* () {
57
+ breakDownMemoryByShapes() {
58
+ return __awaiter(this, arguments, void 0, function* (options = {}) {
59
59
  const opt = { buildNodeIdIndex: true, verbose: true };
60
60
  const file = options.file ||
61
61
  core_1.utils.getSnapshotFilePathWithTabType(/.*/) ||
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
- * @oncall web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
11
11
  import { BaseOption } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { BaseOption } from '@memlab/core';
11
11
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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); }); }
@@ -56,16 +56,16 @@ class ObjectUnboundGrowthAnalysis extends BaseAnalysis_1.default {
56
56
  yield this.checkUnbound(opt);
57
57
  });
58
58
  }
59
- checkUnbound(options = {}) {
60
- return __awaiter(this, void 0, void 0, function* () {
59
+ checkUnbound() {
60
+ return __awaiter(this, arguments, void 0, function* (options = {}) {
61
61
  core_1.memoryBarChart.plotMemoryBarChart(options);
62
62
  core_1.utils.checkSnapshots(options);
63
63
  yield this.detectUnboundGrowth(options);
64
64
  });
65
65
  }
66
66
  // find any objects that keeps growing
67
- detectUnboundGrowth(options = {}) {
68
- return __awaiter(this, void 0, void 0, function* () {
67
+ detectUnboundGrowth() {
68
+ return __awaiter(this, arguments, void 0, function* (options = {}) {
69
69
  const nodeInfo = Object.create(null);
70
70
  let hasCheckedFirstSnapshot = false;
71
71
  let snapshot = null;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
- * @oncall web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  /**
11
11
  * A heap analysis calculating the memory breakdown of React
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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); }); }
@@ -76,8 +76,8 @@ class ReactComponentHookAnalysis extends BaseAnalysis_1.default {
76
76
  });
77
77
  }
78
78
  /** @internal */
79
- breakDownMemoryByReactComponents(options = {}) {
80
- return __awaiter(this, void 0, void 0, function* () {
79
+ breakDownMemoryByReactComponents() {
80
+ return __awaiter(this, arguments, void 0, function* (options = {}) {
81
81
  const opt = { buildNodeIdIndex: true, verbose: true };
82
82
  const file = options.file ||
83
83
  core_1.utils.getSnapshotFilePathWithTabType(/.*/) ||
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
- * @oncall web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
11
11
  import { BaseOption } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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 web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
11
11
  import { BaseOption } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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); }); }
@@ -208,7 +208,6 @@ class StringAnalysis extends BaseAnalysis_1.default {
208
208
  }
209
209
  }
210
210
  }
211
- exports.default = StringAnalysis;
212
211
  /**
213
212
  * collect statistics for specified string patterns
214
213
  * pattern name -> string pattern checker
@@ -244,3 +243,4 @@ StringAnalysis.stringPatternsToObserve = {
244
243
  return true;
245
244
  },
246
245
  };
246
+ exports.default = StringAnalysis;
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
7
  * @format
8
- * @oncall web_perf_infra
8
+ * @oncall memory_lab
9
9
  */
10
10
  import type { AnalyzeSnapshotResult, HeapAnalysisOptions } from '../PluginUtils';
11
11
  import { BaseOption } from '@memlab/core';
@@ -6,7 +6,7 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  *
8
8
  * @format
9
- * @oncall web_perf_infra
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); }); }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@memlab/heap-analysis",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "license": "MIT",
5
5
  "description": "heap analysis plugins for memlab",
6
- "author": "Liang Gong <lgong@fb.com>",
6
+ "author": "Liang Gong <lgong@meta.com>",
7
7
  "contributors": [],
8
8
  "keywords": [
9
9
  "heap",
@@ -20,8 +20,8 @@
20
20
  "LICENSE"
21
21
  ],
22
22
  "dependencies": {
23
- "@memlab/core": "^1.1.40",
24
- "@memlab/e2e": "^1.0.40",
23
+ "@memlab/core": "^1.1.41",
24
+ "@memlab/e2e": "^1.0.41",
25
25
  "ansi": "^0.3.1",
26
26
  "babar": "^0.2.0",
27
27
  "chalk": "^4.0.0",
@@ -40,7 +40,7 @@
40
40
  "@types/node": "^12.16.3",
41
41
  "jest": "^29.6.2",
42
42
  "ts-jest": "^29.1.1",
43
- "typescript": "^4.6.3"
43
+ "typescript": "^5.7.2"
44
44
  },
45
45
  "repository": {
46
46
  "type": "git",