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.

46 lines
1.2 KiB

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose: Real-Time Hierarchical Profiling
  4. //
  5. // $NoKeywords: $
  6. //===========================================================================//
  7. #ifndef __VPROF_ENGINE_H__
  8. #define __VPROF_ENGINE_H__
  9. #include "igameserverdata.h"
  10. class IVProfExport;
  11. class CVProfile;
  12. void PreUpdateProfile( float filteredtime );
  13. void PostUpdateProfile();
  14. void UpdateVXConsoleProfile();
  15. void RegisterVProfDataListener( ra_listener_id listenerID ); // remote data clients
  16. void RemoveVProfDataListener( ra_listener_id listenerID ); // remote data clients
  17. void WriteRemoteVProfData();
  18. // Used to point the budget panel at remote data
  19. void OverrideVProfExport( IVProfExport *pExport );
  20. void ResetVProfExport( IVProfExport *pExport );
  21. // Take a snapshot of vprof data so we can send it to the dedicated server.
  22. void VProfExport_SnapshotVProfHistory();
  23. // Called on shutdown.
  24. void VProfRecord_Shutdown();
  25. // Used by rpt
  26. void VProfExport_Pause();
  27. void VProfExport_Resume();
  28. extern IVProfExport *g_pVProfExport; // used by engine's budget panel
  29. // The budget panel and vprof panels use this for display.
  30. extern CVProfile *g_pVProfileForDisplay;
  31. extern unsigned g_VProfTargetThread;
  32. #endif