diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/vprof_record.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'engine/vprof_record.h')
| -rw-r--r-- | engine/vprof_record.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/engine/vprof_record.h b/engine/vprof_record.h new file mode 100644 index 0000000..112c7a0 --- /dev/null +++ b/engine/vprof_record.h @@ -0,0 +1,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 |