blob: 112c7a035a4250aa65290f1bad92fbe1aa5ab3e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#ifndef VPROF_RECORD_H
#define VPROF_RECORD_H
#ifdef _WIN32
#pragma once
#endif
void VProfRecord_Shutdown();
// Take a snapshot of the current vprof state (and maybe write it to the file).
void VProfRecord_Snapshot();
// Execute any CVProfile::Start/Stop commands (you can only do them at certain times).
void VProfRecord_StartOrStop();
bool VProfRecord_IsPlayingBack();
// Which tick are we in the playback (-1 if not playing back).
int VProfPlayback_GetCurrentTick();
float VProfPlayback_GetCurrentPercent();
// These functions return 0 on error, 1 on success, and 2 means that it succeeded
// but that the nodes changed (so any tree views attached to it should be reset).
int VProfPlayback_SetPlaybackTick( int iTick ); // Note: this might take a long time if it has to seek a long way.
void VProfPlayback_Step();
int VProfPlayback_StepBack(); // Note: this might take a long time if it has to seek a long way.
int VProfPlayback_SeekToPercent( float percent ); // Seek to a percent of the way through the file.
class CVProfile;
extern CVProfile *g_pVProfileForDisplay;
#endif // VPROF_RECORD_H
|