Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.3 KiB

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