Interface IDiagnosticsService
- Namespace
- Framework.Systems.Diagnostics
- Assembly
- Assembly-CSharp.dll
Diagnostics 기능 진입점 계약. DI 주입 대상.
public interface IDiagnosticsService
Remarks
신규 코드는 정적 Diagnostics 클래스가 아닌 이 인터페이스를 통해 접근한다. 정적 Diagnostics.Service 프로퍼티를 통해 하위 호환성도 유지한다.
Properties
IsEnabled
Diagnostics 시스템 활성 여부.
bool IsEnabled { get; }
Property Value
- bool
Methods
GetSnapshot()
현재 시점의 진단 스냅샷 반환.
DiagnosticsSnapshot GetSnapshot()
Returns
RegisterWatcher(IDiagnosticsWatcher)
사용자 정의 Watcher 등록. Overlay Custom 섹션에 자동 표시.
void RegisterWatcher(IDiagnosticsWatcher watcher)
Parameters
watcherIDiagnosticsWatcher등록할 Watcher 인스턴스.
ToggleOverlay()
DiagnosticsOverlay 표시/숨김 토글.
void ToggleOverlay()