summaryrefslogtreecommitdiff
path: root/external/vpc/public/tier0/vprof_sn.h
blob: ecf776fe0329a964780c91aebc87d8c2fe88fc6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//========= 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

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( );
	}
};

#else

class CVProfSnMarkerScope  { public: CVProfSnMarkerScope( const char * ) {} };

#endif

#endif