Table of Contents

Interface IMetrics

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

성능 Metrics 기록 계약. Sampling 기반 저장.

public interface IMetrics

Remarks

매 프레임 Record 금지 — Sampling 주기(기본 1초)에만 내부 저장. 평균 계산은 GetAverage로 조회. Custom Metrics(EnemyCount 등) 확장에 사용.

Methods

Flush()

Metrics 파일/메모리 플러시.

void Flush()

GetAverage(string)

해당 키의 최근 N 샘플 평균 반환.

float GetAverage(string key)

Parameters

key string

조회할 Metrics 키.

Returns

float

평균값. 샘플 없으면 0.

GetMax(string)

해당 키의 최근 N 샘플 최댓값 반환.

float GetMax(string key)

Parameters

key string

Returns

float

Record(string, float)

값 기록. Sampling 주기 미도달 시 누적만 수행.

void Record(string key, float value)

Parameters

key string

Metrics 식별 키.

value float

기록할 float 값.