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.
|
|
//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
#ifndef TIER_V0PROF_SN_HDR
#define TIER_V0PROF_SN_HDR
// enable this to get detailed SN Tuner markers. PS3 specific
#if defined( SN_TARGET_PS3 ) && !defined(_CERT)
//#define VPROF_SN_LEVEL 0 // PB: Vprof markers to tuner turned off
extern "C" void(*g_pfnPushMarker)( const char * pName ); extern "C" void(*g_pfnPopMarker)();
class CVProfSnMarkerScope { public: CVProfSnMarkerScope( const char * pszName ) { g_pfnPushMarker( pszName ); } ~CVProfSnMarkerScope() { g_pfnPopMarker( ); } };
#define SNPROF(name) ((void)0)//CVProfSnMarkerScope v_snprof##__LINE__(name);
#define SNPROF_ANIM(name) ((void)0)//SNPROF(name)
#else
class CVProfSnMarkerScope { public: CVProfSnMarkerScope( const char * ) {} };
#define SNPROF(name) TM_ZONE( TELEMETRY_LEVEL1, TMZF_NONE, "%s", name );
#define SNPROF_ANIM(name) TM_ZONE( TELEMETRY_LEVEL1, TMZF_NONE, "anim %s", name );
#endif
#endif
|