Add PerformanceMeasurement logging variables to ConfigurationManager. Read from logDir and file prefix from config file in PerformanceManager.

This commit is contained in:
Matthew Territo
2017-07-06 17:01:21 -06:00
parent 810c2ec493
commit a91e48efe7
6 changed files with 58 additions and 2 deletions

View File

@@ -78,12 +78,16 @@ public:
static const std::string KeySettingsScript;
/// The key that stores the settings for determining log-related settings
static const std::string KeyLogging;
/// The key that stores the directory for Logging
static const std::string PartLogDir;
/// The key that stores the desired LogLevel for the whole application
/// \sa ghoul::logging::LogManager
static const std::string PartLogLevel;
/// The key that stores whether the log should be immediately flushed after a n
/// \sa ghoul::logging::LogManager
static const std::string PartImmediateFlush;
/// The key for prefixing PerformanceMeasurement logfiles
static const std::string PartLogPerformancePrefix;
/// The key that stores a subdirectory with a description for additional
/// ghoul::logging::Log%s to be created
/// \sa LogFactory

View File

@@ -59,6 +59,12 @@ public:
void storeScenePerformanceMeasurements(const std::vector<SceneGraphNode*>& sceneNodes);
void outputLogs();
void logDir(std::string dir);
std::string logDir();
void prefix(std::string prefix);
std::string prefix();
void enableLogging();
void disableLogging();
void toggleLogging();
@@ -69,6 +75,9 @@ public:
private:
bool _doPerformanceMeasurements;
bool _loggingEnabled;
std::string _logDir;
std::string _prefix;
std::map<std::string, size_t> individualPerformanceLocations;