MCPcopy Create free account
hub / github.com/esengine/esengine / getSystemInfo

Method getSystemInfo

packages/core/src/Plugins/DebugPlugin.ts:219–235  ·  view source on GitHub ↗

* 获取系统调试信息

(system: EntitySystem)

Source from the content-addressed store, hash-verified

217 * 获取系统调试信息
218 */
219 private getSystemInfo(system: EntitySystem): SystemDebugInfo {
220 const perfStats = system.getPerformanceStats();
221
222 const performance = perfStats ? {
223 avgExecutionTime: perfStats.averageTime,
224 maxExecutionTime: perfStats.maxTime,
225 totalCalls: perfStats.executionCount
226 } : undefined;
227
228 return {
229 name: system.constructor.name,
230 enabled: system.enabled,
231 updateOrder: system.updateOrder,
232 entityCount: system.entities.length,
233 ...(performance !== undefined && { performance })
234 };
235 }
236
237 /**
238 * 获取实体调试信息

Callers 1

getSceneInfoMethod · 0.95

Calls 1

getPerformanceStatsMethod · 0.80

Tested by

no test coverage detected