mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-25 13:58:55 -05:00
Cleanup for coding style
Add strict mode to check_style_guide script
This commit is contained in:
@@ -43,19 +43,19 @@ class PerformanceManager {
|
||||
public:
|
||||
static void createGlobalSharedMemory();
|
||||
static void destroyGlobalSharedMemory();
|
||||
|
||||
|
||||
PerformanceManager(std::string loggingDirectory = "${BASE_PATH}",
|
||||
std::string prefix = "PM-");
|
||||
|
||||
|
||||
~PerformanceManager();
|
||||
|
||||
void resetPerformanceMeasurements();
|
||||
|
||||
|
||||
bool isMeasuringPerformance() const;
|
||||
|
||||
void storeIndividualPerformanceMeasurement(std::string identifier, long long nanoseconds);
|
||||
void storeScenePerformanceMeasurements(const std::vector<SceneGraphNode*>& sceneNodes);
|
||||
|
||||
|
||||
void outputLogs();
|
||||
|
||||
void writeData(std::ofstream& out, const std::vector<float>& data);
|
||||
@@ -83,13 +83,13 @@ private:
|
||||
std::string _prefix;
|
||||
std::string _suffix;
|
||||
std::string _ext;
|
||||
|
||||
|
||||
std::map<std::string, size_t> individualPerformanceLocations;
|
||||
|
||||
|
||||
std::unique_ptr<ghoul::SharedMemory> _performanceMemory;
|
||||
|
||||
size_t _tick;
|
||||
|
||||
|
||||
void tick();
|
||||
bool createLogDir();
|
||||
};
|
||||
|
||||
@@ -46,7 +46,7 @@ private:
|
||||
|
||||
std::chrono::high_resolution_clock::time_point _startTime;
|
||||
};
|
||||
|
||||
|
||||
#define __MERGE(a,b) a##b
|
||||
#define __LABEL(a) __MERGE(unique_name_, a)
|
||||
|
||||
@@ -57,7 +57,7 @@ private:
|
||||
(name), \
|
||||
OsEng.renderEngine().performanceManager() \
|
||||
)
|
||||
|
||||
|
||||
} // namespace openspace::performance
|
||||
|
||||
#endif // __OPENSPACE_CORE___PERFORMANCEMEASUREMENT___H__
|
||||
|
||||
Reference in New Issue
Block a user