MCPcopy Create free account
hub / github.com/Kitware/VTK / DumpMemoryStatistics

Method DumpMemoryStatistics

Rendering/WebGPU/vtkWebGPUConfiguration.cxx:1001–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

999}
1000
1001void vtkWebGPUConfiguration::DumpMemoryStatistics()
1002{
1003#if VTK_USE_DAWN_WEBGPU
1004 auto* memoryDump = new DawnMemoryDump();
1005 dawn::native::DumpMemoryStatistics(this->GetDevice().Get(), memoryDump);
1006 std::ostringstream os;
1007 memoryDump->PrintSelf(os, vtkIndent());
1008 vtkVLog(this->GetGPUMemoryLogVerbosity(), << os.str());
1009 delete memoryDump;
1010#else
1011 // Cannot do anything here because we don't know if the textures/buffers
1012 // created through `this->CreateTexture` or `this->CreateBuffer` are still alive.
1013 vtkVLog(this->GetGPUMemoryLogVerbosity(),
1014 "Cannot determine memory statistics for allocated webgpu objects in this webgpu "
1015 "implementation");
1016#endif
1017}
1018VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 6

GetDeviceMethod · 0.95
vtkIndentFunction · 0.50
GetMethod · 0.45
PrintSelfMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected