diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /external/vpc/public/tier0/vprof_sn.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'external/vpc/public/tier0/vprof_sn.h')
| -rw-r--r-- | external/vpc/public/tier0/vprof_sn.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/external/vpc/public/tier0/vprof_sn.h b/external/vpc/public/tier0/vprof_sn.h new file mode 100644 index 0000000..ecf776f --- /dev/null +++ b/external/vpc/public/tier0/vprof_sn.h @@ -0,0 +1,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
\ No newline at end of file |