@xiaoguomeiyitian/core 2.0.0 → 2.0.1

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/README.md CHANGED
@@ -192,12 +192,21 @@ export declare class Global {
192
192
  flushDumpData(): Promise<void>;
193
193
  /** 执行临时补丁脚本 */
194
194
  runPatch(patchName: string, ...args: any[]): Promise<any>;
195
- /** 获取V8 CPU调用统计信息,默认统计10秒钟 cwd/profile.cpuprofile*/
196
- profiler(time?: number): void;
197
- /** 获取V8 GC统计信息,默认统计10秒钟 */
198
- profilerGC(time?: number): void;
199
- /** 生成内存快照 cwd/heapSnapshot.heapsnapshot*/
195
+ /** 获取V8 CPU调用统计信息,默认统计10秒钟 data/*_profile.cpuprofile*/
196
+ profiler(durationMs?: number): void;
197
+ /** 获取V8 GC统计信息,默认统计10秒钟 data/*_GCProfiler.json*/
198
+ profilerGC(durationMs?: number): void;
199
+ /** 生成内存快照 data/*.heapsnapshot*/
200
200
  profilerHeap(password: string): void;
201
+ /**测量指定时间段内的 Event Loop 延迟统计信息,,默认统计10秒钟
202
+ * * @returns {
203
+ * durationMs: number, 持续时间
204
+ * p99Ms: string, 99% Event Loop 周期
205
+ * maxMs: string, 最大 Event Loop 周期
206
+ * meanMs: string 平均 Event Loop 周期
207
+ * }
208
+ */
209
+ measureEventLoopDelayOnce(durationMs?: number): void;
201
210
  }
202
211
  export declare class Entity {
203
212
  type: string; /** 实体类型 */
@@ -253,6 +262,9 @@ export declare class GenEntityDefs {
253
262
  export declare class GenServiceFunc {
254
263
  gen(fReadPath: string, fWritePath: string, types: string[]): void;
255
264
  }
265
+ export declare class BytenodeMgr {
266
+ gen(filePath: string): void;
267
+ }
256
268
  ```
257
269
 
258
270
  ```typescript
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaoguomeiyitian/core",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "types/lib.d.ts",
6
6
  "bin": {
@@ -17,7 +17,7 @@
17
17
  "pull": "git stash && git pull && git stash pop",
18
18
  "build": "tsc --build --diagnostics",
19
19
  "jsc": "node ./gen_jsc.js ./dist/lib.js ./dist/lib.jsc",
20
- "pack": "npm pack --pack-destination ../sheShou/server",
20
+ "pack": "npm pack --pack-destination ../sheShou/server_dev",
21
21
  "bp": "npm run build && npm run jsc && npm run pack"
22
22
  },
23
23
  "bundleDependencies": [],
package/types/lib.d.ts CHANGED
@@ -41,12 +41,21 @@ export declare class Global {
41
41
  flushDumpData(): Promise<void>;
42
42
  /** 执行临时补丁脚本 */
43
43
  runPatch(patchName: string, ...args: any[]): Promise<any>;
44
- /** 获取V8 CPU调用统计信息,默认统计10秒钟 cwd/profile.cpuprofile*/
45
- profiler(time?: number): void;
46
- /** 获取V8 GC统计信息,默认统计10秒钟 */
47
- profilerGC(time?: number): void;
48
- /** 生成内存快照 cwd/heapSnapshot.heapsnapshot*/
44
+ /** 获取V8 CPU调用统计信息,默认统计10秒钟 data/*_profile.cpuprofile*/
45
+ profiler(durationMs?: number): void;
46
+ /** 获取V8 GC统计信息,默认统计10秒钟 data/*_GCProfiler.json*/
47
+ profilerGC(durationMs?: number): void;
48
+ /** 生成内存快照 data/*.heapsnapshot*/
49
49
  profilerHeap(password: string): void;
50
+ /**测量指定时间段内的 Event Loop 延迟统计信息,,默认统计10秒钟
51
+ * * @returns {
52
+ * durationMs: number, 持续时间
53
+ * p99Ms: string, 99% Event Loop 周期
54
+ * maxMs: string, 最大 Event Loop 周期
55
+ * meanMs: string 平均 Event Loop 周期
56
+ * }
57
+ */
58
+ measureEventLoopDelayOnce(durationMs?: number): void;
50
59
  }
51
60
  export declare class Entity {
52
61
  type: string; /** 实体类型 */
Binary file
Binary file
Binary file