blob: bd90aad3aa1912dcb0c3a7c46998bc9ee08b26b9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#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();
|