19 Commits

Author SHA1 Message Date
Shutong Wu 69eb51c661 chore(revamp): checkpoint WIP before testing feat/3d-asset-generation
README-zh.md edits + .meta/uv.lock churn on brand-distribution-analytics, committed
(not stashed) so the feature branch can be checked out in the main worktree for editor
testing. Untracked .agents/ and AGENTS.md intentionally left out.

Claude-Session: https://claude.ai/code/session_01Tjpb5gYgUe2AUJuRdXr7Lv
2026-06-28 11:11:59 -07:00
DLSINNOCENCE d9431c5095 Guard memory snapshot overload invocation
The MemoryProfiler reflection code now verifies the selected overload's trailing parameter type before invoking it. This keeps Unity 6 CaptureFlags overloads and legacy uint overloads from being mixed in environments where both type families can be discovered.

Constraint: Reflection overload selection spans Unity versions with different trailing argument types.

Confidence: high

Scope-risk: narrow

Tested: Patched GameClient PackageCache and verified memory_take_snapshot, memory_list_snapshots, memory_compare_snapshots.

Tested: Verified profiler_status, get_frame_timing, get_counters, frame_debugger_get_events, and compare error paths.

Not-tested: Full Unity package test suite.
2026-05-14 17:06:56 +08:00
DLSINNOCENCE 488145371d Support Unity 6 memory snapshot capture API
Unity 6 exposes MemoryProfiler.TakeSnapshot from UnityEngine.CoreModule with CaptureFlags overloads, so the old Unity.MemoryProfiler.Editor reflection path makes memory_take_snapshot report that com.unity.memoryprofiler is missing even when the package is installed. The profiler list and compare actions only inspect snapshot files, so they no longer depend on MemoryProfiler type discovery.

Constraint: Unity 6 moved MemoryProfiler APIs into UnityEngine.CoreModule.

Rejected: Require com.unity.memoryprofiler editor assembly type discovery for all memory actions | list and compare only need filesystem metadata.

Confidence: high

Scope-risk: narrow

Tested: uv run --extra dev pytest tests/test_manage_profiler.py -v

Tested: Reflected Unity 6 MemoryProfiler.TakeSnapshot overloads in GameClient editor.

Not-tested: Full Unity package test suite.
2026-05-14 17:01:46 +08:00
chenkunqing 68cd175470 Fix MCP window reopening and profiler warning 2026-04-26 21:47:37 +08:00
dsarno a3465587d2 fix: Unity 2021.3 compat — compile errors, Mono crash, 19 test failures (#1036) 2026-04-05 18:07:06 -07:00
Shutong Wu e15a377980 Update through field deployment - bug fix / doc update / UX change 2026-03-31 01:08:27 -04:00
Shutong Wu c120fdd0e9 fix(profiler): address AI review — try/finally disposal, safe reflection, type fixes 2026-03-29 01:27:42 -04:00
Shutong Wu 25357a0e75 fix(profiler): address code review — error on unknown category, tighten reflection 2026-03-29 00:10:03 -04:00
Shutong Wu 4095937e97 feat(profiler): add FrameDebuggerOps with reflection-based event extraction 2026-03-28 23:14:19 -04:00
Shutong Wu a5fabeffc6 feat(profiler): add MemorySnapshotOps with take/list/compare via reflection 2026-03-28 23:14:10 -04:00
Shutong Wu 97937c1764 feat(profiler): add ObjectMemoryOps for per-object memory queries 2026-03-28 23:00:12 -04:00
Shutong Wu 0fe485bf32 feat(profiler): add CounterOps with async 1-frame-wait recorder pattern 2026-03-28 22:57:17 -04:00
Shutong Wu 09bfced11c feat(profiler): add FrameTimingOps using FrameTimingManager (sync, 12 fields) 2026-03-28 22:55:20 -04:00
Shutong Wu 7c2167108e feat(profiler): async dispatcher + SessionOps, delete contributor Ops files 2026-03-28 22:24:30 -04:00
zaferdace 771fdf1a02 fix: use official Unity Frame Timing API counter names 2026-03-28 21:37:55 -04:00
zaferdace 5dcecd32ca refactor: use explicit valid keys in COUNTER_MAP tuples 2026-03-28 21:37:55 -04:00
zaferdace 42b020b442 fix: address review feedback — correct counter names, CLI help text, strengthen tests 2026-03-28 21:37:55 -04:00
zaferdace 92b4116c76 fix: correct ProfilerRecorder counter names in ScriptTiming and PhysicsTiming 2026-03-28 21:37:55 -04:00
zaferdace 0011a7a5ee feat: add manage_profiler tool for CPU timing, GC alloc, and animation profiling
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 21:37:55 -04:00