aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/tier0/pmc360.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/public/tier0/pmc360.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/public/tier0/pmc360.h')
-rw-r--r--mp/src/public/tier0/pmc360.h144
1 files changed, 72 insertions, 72 deletions
diff --git a/mp/src/public/tier0/pmc360.h b/mp/src/public/tier0/pmc360.h
index 4421fc91..ebae346f 100644
--- a/mp/src/public/tier0/pmc360.h
+++ b/mp/src/public/tier0/pmc360.h
@@ -1,73 +1,73 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: Analogous to l2cache.h, this class represents information gleaned
-// from the 360's Performance Monitor Counters. In particular we
-// are interested in l2 cache misses and load-hit-stores.
-//
-//=============================================================================//
-#ifndef CPMCDATA_H
-#define CPMCDATA_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#ifndef _X360
-#error This file must only be compiled for XBOX360!
-#endif
-
-
-// Warning:
-// As written, this class only supports profiling thread 0, processor 0.
-
-class CPMCData
-{
-public:
-
- CPMCData();
- ~CPMCData() {};
-
- void Start( void );
- void End( void );
-
- /// This function should be called exactly once during the lifespan of the program;
- /// it will set up the counters to record the information we are interested in.
- /// This will stomp on whoever else might have set the performance counters elsewhere
- /// in the game.
- static void InitializeOnceProgramWide( void );
- static bool IsInitialized();
-
- //-------------------------------------------------------------------------
- // GetL2CacheMisses
- //-------------------------------------------------------------------------
- uint64 GetL2CacheMisses( void ) const
- {
- return m_Delta.L2CacheMiss;
- }
-
- uint64 GetLHS( void ) const
- {
- return m_Delta.LHS;
- }
-
-/*
-#ifdef DBGFLAG_VALIDATE
- void Validate( CValidator &validator, tchar *pchName ); // Validate our internal structures
-#endif // DBGFLAG_VALIDATE
-*/
-
-private:
- /// represents saved numbers from the counters we are interested in
- struct PMCounters
- {
- uint64 L2CacheMiss;
- uint64 LHS; ///< load hit store
-
- PMCounters(int64 _l2cm, int64 _lhs ) : L2CacheMiss(_l2cm), LHS(_lhs) {};
- PMCounters() : L2CacheMiss(0), LHS(0) {};
- };
-
- PMCounters m_OnStart; ///< values when we began the timer
- PMCounters m_Delta ; ///< computed total delta between start/stop
-};
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Analogous to l2cache.h, this class represents information gleaned
+// from the 360's Performance Monitor Counters. In particular we
+// are interested in l2 cache misses and load-hit-stores.
+//
+//=============================================================================//
+#ifndef CPMCDATA_H
+#define CPMCDATA_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#ifndef _X360
+#error This file must only be compiled for XBOX360!
+#endif
+
+
+// Warning:
+// As written, this class only supports profiling thread 0, processor 0.
+
+class CPMCData
+{
+public:
+
+ CPMCData();
+ ~CPMCData() {};
+
+ void Start( void );
+ void End( void );
+
+ /// This function should be called exactly once during the lifespan of the program;
+ /// it will set up the counters to record the information we are interested in.
+ /// This will stomp on whoever else might have set the performance counters elsewhere
+ /// in the game.
+ static void InitializeOnceProgramWide( void );
+ static bool IsInitialized();
+
+ //-------------------------------------------------------------------------
+ // GetL2CacheMisses
+ //-------------------------------------------------------------------------
+ uint64 GetL2CacheMisses( void ) const
+ {
+ return m_Delta.L2CacheMiss;
+ }
+
+ uint64 GetLHS( void ) const
+ {
+ return m_Delta.LHS;
+ }
+
+/*
+#ifdef DBGFLAG_VALIDATE
+ void Validate( CValidator &validator, tchar *pchName ); // Validate our internal structures
+#endif // DBGFLAG_VALIDATE
+*/
+
+private:
+ /// represents saved numbers from the counters we are interested in
+ struct PMCounters
+ {
+ uint64 L2CacheMiss;
+ uint64 LHS; ///< load hit store
+
+ PMCounters(int64 _l2cm, int64 _lhs ) : L2CacheMiss(_l2cm), LHS(_lhs) {};
+ PMCounters() : L2CacheMiss(0), LHS(0) {};
+ };
+
+ PMCounters m_OnStart; ///< values when we began the timer
+ PMCounters m_Delta ; ///< computed total delta between start/stop
+};
+
#endif // CPMCDATA_H \ No newline at end of file