//////////////////////////////////////////////////////////////////////////////// // // File: gear_testing/metrics/perftest.h // Copyright (c) Ubisoft Entertainment. All rights reserved. // //////////////////////////////////////////////////////////////////////////////// #ifndef _GEAR_TESTING__METRICS__PERFTEST_H_ #define _GEAR_TESTING__METRICS__PERFTEST_H_ #if !defined(__SPU__) #include "gear_testing/gear_testing.h" #include "gear_testing/core/basictest.h" namespace G4 { /// Basis for a performance test. /** This class allows for easy performance testing and ultimately output graphs * for easy tracking over time or comparison between implementation of modules * or classes. */ class PerfTest : public BasicTest { public: /// Setup the performance collection. void SetUp(); /// Finalize performance collection. void TearDown(); private: int previousAffinity; int previousPriority; }; } // namespace G4 #endif // #if !defined(__SPU__) #endif // _GEAR_TESTING__METRICS__PERFTEST_H_