/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
library/cpp/execprofile/profile.h
17 строк
513 B
qkrorlqr
Initial NBS OpenSource export
28 апр 2023, 21:54
28 апр 2023, 21:54
783a858
Код
Авторство
О чём код?
#pragma once #include <stdio.h> // Starts capturing execution samples void BeginProfiling(); // Resets captured execution samples void ResetProfile(); // Pauses capturing execution samples and dumps them to the file // Samples are not cleared so that profiling can be continued by calling BeginProfiling() // or it can be started from scratch by calling ResetProfile() and then BeginProfiling() void EndProfiling(FILE* out); // Dumps the profile to default file (basename.pid.N.profile) void EndProfiling();