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.

38 lines
982 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. #ifndef TIER_V0PROF_SN_HDR
  3. #define TIER_V0PROF_SN_HDR
  4. // enable this to get detailed SN Tuner markers. PS3 specific
  5. #if defined( SN_TARGET_PS3 ) && !defined(_CERT)
  6. //#define VPROF_SN_LEVEL 0 // PB: Vprof markers to tuner turned off
  7. extern "C" void(*g_pfnPushMarker)( const char * pName );
  8. extern "C" void(*g_pfnPopMarker)();
  9. class CVProfSnMarkerScope
  10. {
  11. public:
  12. CVProfSnMarkerScope( const char * pszName )
  13. {
  14. g_pfnPushMarker( pszName );
  15. }
  16. ~CVProfSnMarkerScope()
  17. {
  18. g_pfnPopMarker( );
  19. }
  20. };
  21. #define SNPROF(name) ((void)0)//CVProfSnMarkerScope v_snprof##__LINE__(name);
  22. #define SNPROF_ANIM(name) ((void)0)//SNPROF(name)
  23. #else
  24. class CVProfSnMarkerScope { public: CVProfSnMarkerScope( const char * ) {} };
  25. #define SNPROF(name) TM_ZONE( TELEMETRY_LEVEL1, TMZF_NONE, "%s", name );
  26. #define SNPROF_ANIM(name) TM_ZONE( TELEMETRY_LEVEL1, TMZF_NONE, "anim %s", name );
  27. #endif
  28. #endif