MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / printMemoryStats

Method printMemoryStats

libs/render/GeometryStore.h:295–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 }
294
295 void printMemoryStats()
296 {
297 rMessage() << "-- Geometry Store Memory --" << std::endl;
298 rMessage() << "Number of Frame Buffers: " << NumFrameBuffers << std::endl;
299
300 for (auto i = 0; i < NumFrameBuffers; ++i)
301 {
302 rMessage() << "Frame Buffer " << i << std::endl;
303 rMessage() << " Vertices: " << string::getFormattedByteSize(_frameBuffers[i].vertices.getBufferSizeInBytes()) << std::endl;
304 rMessage() << " Indices: " << string::getFormattedByteSize(_frameBuffers[i].indices.getBufferSizeInBytes()) << std::endl;
305
306 auto logSize = _frameBuffers[i].vertexTransactionLog.capacity() + _frameBuffers[i].indexTransactionLog.capacity();
307 rMessage() << " Transaction Logs: " << string::getFormattedByteSize(logSize * sizeof(detail::BufferTransaction)) << std::endl;
308 }
309 }
310
311private:
312 FrameBuffer& getCurrentBuffer()

Callers 1

showMemoryStatsMethod · 0.80

Calls 4

rMessageFunction · 0.85
getFormattedByteSizeFunction · 0.85
getBufferSizeInBytesMethod · 0.80
capacityMethod · 0.80

Tested by

no test coverage detected