summaryrefslogtreecommitdiff
path: root/indra/newview/llviewerstatsrecorder.cpp
diff options
context:
space:
mode:
authorsimon <simon@lindenlab.com>2023-05-09 17:16:26 +0100
committersimon <simon@lindenlab.com>2023-05-09 17:16:26 +0100
commit90631fccef6ab1596655b18fb7dbdc87a4cb80ac (patch)
tree09bc86b85d32dbe02c6004f05739c3de945b7bab /indra/newview/llviewerstatsrecorder.cpp
parente8c1a18105bddc29951d4c4b1700dc0af37c83c2 (diff)
SL-19676 - more update and scene loading stats. Added texture and mesh
count
Diffstat (limited to 'indra/newview/llviewerstatsrecorder.cpp')
-rw-r--r--indra/newview/llviewerstatsrecorder.cpp19
1 files changed, 13 insertions, 6 deletions
diff --git a/indra/newview/llviewerstatsrecorder.cpp b/indra/newview/llviewerstatsrecorder.cpp
index 64167135ac..f95a960186 100644
--- a/indra/newview/llviewerstatsrecorder.cpp
+++ b/indra/newview/llviewerstatsrecorder.cpp
@@ -80,7 +80,8 @@ void LLViewerStatsRecorder::clearStats()
mObjectCacheUpdateReplacements = 0;
mObjectUpdateFailures = 0;
mObjectUpdateFailuresSize = 0;
- mTextureFetchSize = 0;
+ mTextureFetchCount = 0;
+ mMeshLoadedCount = 0;
}
@@ -243,8 +244,9 @@ void LLViewerStatsRecorder::writeToLog( F32 interval )
<< "Cache Update Adds,"
<< "Cache Update Replacements,"
<< "Update Failures,"
- << "Texture Fetch bps,"
- << "\n";
+ << "Texture Count,"
+ << "Mesh Load Count,"
+ << "\n";
data_size = col_headers.str().size();
if (fwrite(col_headers.str().c_str(), 1, data_size, mStatsFile ) != data_size)
@@ -277,7 +279,8 @@ void LLViewerStatsRecorder::writeToLog( F32 interval )
<< "," << mObjectCacheUpdateAdds
<< "," << mObjectCacheUpdateReplacements
<< "," << mObjectUpdateFailures
- << "," << (mTextureFetchSize * 8 / delta_time)
+ << "," << mTextureFetchCount
+ << "," << mMeshLoadedCount
<< "\n";
data_size = stats_data.str().size();
@@ -329,10 +332,14 @@ F32 LLViewerStatsRecorder::getTimeSinceStart()
return (F32) (LLFrameTimer::getTotalSeconds() - mFileOpenTime);
}
-void LLViewerStatsRecorder::recordTextureFetch( S32 msg_size )
+void LLViewerStatsRecorder::recordTextureFetch()
{
- mTextureFetchSize += msg_size;
+ mTextureFetchCount += 1;
}
+void LLViewerStatsRecorder::recordMeshLoaded()
+{
+ mMeshLoadedCount += 1;
+}