@minecraft/debug-utilities 1.0.0-beta.1.21.60-preview.21 → 1.0.0-beta.1.21.60-preview.23

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 (2) hide show
  1. package/index.d.ts +20 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -21,6 +21,17 @@
21
21
  *
22
22
  */
23
23
  import * as minecraftcommon from '@minecraft/common';
24
+ export interface handleCounts {
25
+ handleCounts: Record<string, number>;
26
+ name: string;
27
+ packId: string;
28
+ scriptModuleUUID: string;
29
+ }
30
+
31
+ export interface PluginStats {
32
+ plugins: handleCounts[];
33
+ }
34
+
24
35
  export interface RuntimeStats {
25
36
  arrayCount: number;
26
37
  atomCount: number;
@@ -43,6 +54,15 @@ export interface RuntimeStats {
43
54
  stringSize: number;
44
55
  }
45
56
 
57
+ /**
58
+ * @remarks
59
+ * Collect type usage stats for each active script
60
+ * plugin/add-on.
61
+ *
62
+ * @returns
63
+ * PluginStats object.
64
+ */
65
+ export function collectPluginStats(): PluginStats;
46
66
  /**
47
67
  * @remarks
48
68
  * Collect memory stats for script runtimes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minecraft/debug-utilities",
3
- "version": "1.0.0-beta.1.21.60-preview.21",
3
+ "version": "1.0.0-beta.1.21.60-preview.23",
4
4
  "description": "",
5
5
  "contributors": [
6
6
  {