Table of Contents

Class MemoryWatcher

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

Memory 지속 증가 감지. N회 연속 최소 증가량 초과 시 Warning. 쿨다운으로 로그 스팸 방지.

public sealed class MemoryWatcher : IDiagnosticsWatcher
Inheritance
object
MemoryWatcher
Implements

Remarks

최소 증가량(MemoryLeakMinIncreaseMB)으로 Scene Load 등 정상 증가 오탐 감소.

Constructors

MemoryWatcher(DiagnosticsConfig)

public MemoryWatcher(DiagnosticsConfig config)

Parameters

config DiagnosticsConfig

Properties

Enabled

Watcher 활성 여부.

public bool Enabled { get; }

Property Value

bool

Name

Watcher 표시 이름.

public string Name { get; }

Property Value

string

Methods

GetStatus()

현재 상태 한 줄 요약. Overlay Custom 섹션에 표시. 예: "Last Frame : 52ms / Spike Count : 4"

public string GetStatus()

Returns

string

Tick(float)

public void Tick(float deltaTime)

Parameters

deltaTime float