mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-03 01:09:34 -05:00
Example of access to invidvidual performance statistics
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user