feat(profiler): 实现高级性能分析器 (#248)

* feat(profiler): 实现高级性能分析器

* test(core): 添加 ProfilerSDK 和 AdvancedProfilerCollector 测试覆盖

* test(core): 添加 ProfilerSDK 和 AdvancedProfilerCollector 测试覆盖
This commit is contained in:
YHH
2025-11-30 00:22:47 +08:00
committed by GitHub
parent 359886c72f
commit 374e08a79e
35 changed files with 4168 additions and 9096 deletions

View File

@@ -923,10 +923,6 @@ export class QuerySystem {
return this._archetypeSystem.getEntityArchetype(entity);
}
// ============================================================
// 响应式查询支持(内部智能缓存)
// ============================================================
/**
* 响应式查询集合(内部使用,作为智能缓存)
* 传统查询API(queryAll/queryAny/queryNone)内部自动使用响应式查询优化性能

View File

@@ -915,8 +915,6 @@ export class Scene implements IScene {
SceneSerializer.deserialize(this, saveData, options);
}
// ==================== 增量序列化 API ====================
/** 增量序列化的基础快照 */
private _incrementalBaseSnapshot?: unknown;

View File

@@ -891,10 +891,6 @@ export abstract class EntitySystem implements ISystemBase, IService {
// 子类可以重写此方法进行清理操作
}
// ============================================================
// 类型安全的辅助方法
// ============================================================
/**
* 类型安全地获取单个组件
*

View File

@@ -121,8 +121,6 @@ export class World {
this._services = new ServiceContainer();
}
// ===== 服务容器 =====
/**
* World级别的服务容器
* 用于管理World范围内的全局服务
@@ -131,8 +129,6 @@ export class World {
return this._services;
}
// ===== Scene管理 =====
/**
* 创建并添加Scene到World
*/
@@ -267,8 +263,6 @@ export class World {
return this._activeScenes.size;
}
// ===== 全局System管理 =====
/**
* 添加全局System
* 全局System会在所有激活Scene之前更新
@@ -317,8 +311,6 @@ export class World {
return null;
}
// ===== World生命周期 =====
/**
* 启动World
*/
@@ -435,8 +427,6 @@ export class World {
this._activeScenes.clear();
}
// ===== 状态信息 =====
/**
* 获取World状态
*/
@@ -484,8 +474,6 @@ export class World {
return stats;
}
// ===== 私有方法 =====
/**
* 检查是否应该执行自动清理
*/
@@ -528,8 +516,6 @@ export class World {
}
}
// ===== 访问器 =====
/**
* 检查World是否激活
*/

View File

@@ -87,8 +87,6 @@ export class WorldManager implements IService {
});
}
// ===== World管理 =====
/**
* 创建新World
*/
@@ -184,8 +182,6 @@ export class WorldManager implements IService {
return world?.isActive ?? false;
}
// ===== 批量操作 =====
/**
* 更新所有活跃的World
*
@@ -292,8 +288,6 @@ export class WorldManager implements IService {
return null;
}
// ===== 统计和监控 =====
/**
* 获取WorldManager统计信息
*/
@@ -342,8 +336,6 @@ export class WorldManager implements IService {
};
}
// ===== 生命周期管理 =====
/**
* 清理空World
*/
@@ -396,8 +388,6 @@ export class WorldManager implements IService {
this.destroy();
}
// ===== 私有方法 =====
/**
* 判断World是否应该被清理
* 清理策略:
@@ -423,8 +413,6 @@ export class WorldManager implements IService {
return !hasEntities && isOldEnough;
}
// ===== 访问器 =====
/**
* 获取World总数
*/