Skip to content

feat: add KVDataMemory for periodic memory usage monitoring#35

Open
SeanSilke wants to merge 1 commit intomainfrom
feature/memory-monitoring
Open

feat: add KVDataMemory for periodic memory usage monitoring#35
SeanSilke wants to merge 1 commit intomainfrom
feature/memory-monitoring

Conversation

@SeanSilke
Copy link
Contributor

No description provided.

@SeanSilke SeanSilke requested a review from pamellix February 16, 2026 10:09
@pamellix
Copy link
Contributor

this.frameTime?.startMonitoring();

Не нужно ли сюда инициализацию метрики добавить?

Copy link
Contributor

@pamellix pamellix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waiting

this.scheduleNext();
}

public stopMonitoring(): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай придерживаться устоявшегося нейминга, давай напишем endMonitoring -

endMonitoring() {

}

private scheduleNext(): void {
this.timerId = setTimeout(async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Думаю лучше тут использовать setInterval, так как мы отправляем метрики с периодичностью, а не один раз - https://developer.mozilla.org/ru/docs/Web/API/Window/setInterval

@pamellix
Copy link
Contributor

И прогони приттиер -
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants