@xiaoguomeiyitian/core 2.0.0 → 2.0.2
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 +17 -5
- package/dist/lib_darwin_22.jsc +0 -0
- package/dist/lib_darwin_24.jsc +0 -0
- package/dist/lib_linux_22.jsc +0 -0
- package/dist/lib_linux_24.jsc +0 -0
- package/dist/lib_win32_22.jsc +0 -0
- package/dist/lib_win32_24.jsc +0 -0
- package/package.json +2 -2
- package/types/lib.d.ts +16 -5
- package/dist/lib_darwin_20.jsc +0 -0
- package/dist/lib_linux_20.jsc +0 -0
- package/dist/lib_win32_20.jsc +0 -0
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秒钟
|
|
196
|
-
profiler(
|
|
197
|
-
/** 获取V8 GC统计信息,默认统计10秒钟 */
|
|
198
|
-
profilerGC(
|
|
199
|
-
/** 生成内存快照
|
|
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
|
package/dist/lib_darwin_22.jsc
CHANGED
|
Binary file
|
package/dist/lib_darwin_24.jsc
CHANGED
|
Binary file
|
package/dist/lib_linux_22.jsc
CHANGED
|
Binary file
|
package/dist/lib_linux_24.jsc
CHANGED
|
Binary file
|
package/dist/lib_win32_22.jsc
CHANGED
|
Binary file
|
package/dist/lib_win32_24.jsc
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xiaoguomeiyitian/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
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/
|
|
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,23 @@ export declare class Global {
|
|
|
41
41
|
flushDumpData(): Promise<void>;
|
|
42
42
|
/** 执行临时补丁脚本 */
|
|
43
43
|
runPatch(patchName: string, ...args: any[]): Promise<any>;
|
|
44
|
-
/** 获取V8 CPU调用统计信息,默认统计10秒钟
|
|
45
|
-
profiler(
|
|
46
|
-
/** 获取V8 GC统计信息,默认统计10秒钟 */
|
|
47
|
-
profilerGC(
|
|
48
|
-
/** 生成内存快照
|
|
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;
|
|
59
|
+
/** 输出gc日志,并在开始前和结束后输出 Node.js 当前的内存占用详情(单位为 MB) */
|
|
60
|
+
outputGC(threshold?: number, durationMs?: number): void;
|
|
50
61
|
}
|
|
51
62
|
export declare class Entity {
|
|
52
63
|
type: string; /** 实体类型 */
|
package/dist/lib_darwin_20.jsc
DELETED
|
Binary file
|
package/dist/lib_linux_20.jsc
DELETED
|
Binary file
|
package/dist/lib_win32_20.jsc
DELETED
|
Binary file
|