Table of Contents

Class SnapshotCollector

Namespace
Framework.Systems.Diagnostics.Collection
Assembly
Assembly-CSharp.dll

ISnapshotCollector 구현체. Unity ProfilerRecorder로 렌더링 지표 수집.

public sealed class SnapshotCollector : ISnapshotCollector
Inheritance
object
SnapshotCollector
Implements

Remarks

ProfilerRecorder는 생성/해제 비용이 있으므로 생성자에서 1회 생성, Dispose에서 해제. GC Alloc은 Profiler.GetMonoUsedSizeLong 프레임 간 차이로 계산. Active GameObject 수는 SetActiveObjectCount로 외부 갱신.

Constructors

SnapshotCollector()

public SnapshotCollector()

Methods

Collect(float)

현재 프레임 성능 데이터를 수집해 DiagnosticSnapshot으로 반환.

public DiagnosticSnapshot Collect(float deltaTime)

Parameters

deltaTime float

ITimeSystem.DeltaTime 값.

Returns

DiagnosticSnapshot

수집된 스냅샷.

Dispose()

public void Dispose()

SetActiveObjectCount(int)

활성 GameObject 수 외부 갱신 (씬 이벤트 연동용).

public void SetActiveObjectCount(int count)

Parameters

count int