Example of access to invidvidual performance statistics

This commit is contained in:
Matthew Territo
2017-07-05 15:31:09 -06:00
parent da3b8052ab
commit 9015a8dad9
+11
View File
@@ -197,9 +197,20 @@ bool PerformanceManager::isMeasuringPerformance() const {
}
void PerformanceManager::outputLogs() {
LINFO("Logging from " << typeid(*this).name() << "::" << __func__);
for (auto it = individualPerformanceLocations.begin(); it != individualPerformanceLocations.end(); ++it) {
LINFO("Log Count:" << it->second << " Node: " << it->first);
}
PerformanceLayout* layout = performanceData();
for (size_t i = 0; i < layout->nFunctionEntries; ++i) {
LINFO("Log:" << i << " Node: " << layout->sceneGraphEntries[i].name << " " << layout->functionEntries[i].time[0]);
}
for (size_t i = 0; i < layout->nScaleGraphEntries; ++i) {
LINFO("Log:" << i << " Node: " << layout->sceneGraphEntries[i].name << " " << layout->sceneGraphEntries[i].renderTime[0];);
}
}
PerformanceLayout* PerformanceManager::performanceData() {