------------------------------------------------------------------------------
| 979 | |
| 980 | //------------------------------------------------------------------------------ |
| 981 | vtkLogger::Verbosity vtkWebGPUConfiguration::GetGPUMemoryLogVerbosity() |
| 982 | { |
| 983 | if (this->GPUMemoryLogVerbosity == vtkLogger::VERBOSITY_INVALID) |
| 984 | { |
| 985 | this->GPUMemoryLogVerbosity = vtkLogger::VERBOSITY_TRACE; |
| 986 | // Find an environment variable that specifies logger verbosity |
| 987 | const char* verbosityKey = "VTK_WEBGPU_MEMORY_LOG_VERBOSITY"; |
| 988 | if (vtksys::SystemTools::HasEnv(verbosityKey)) |
| 989 | { |
| 990 | const char* verbosityCStr = vtksys::SystemTools::GetEnv(verbosityKey); |
| 991 | const auto verbosity = vtkLogger::ConvertToVerbosity(verbosityCStr); |
| 992 | if (verbosity > vtkLogger::VERBOSITY_INVALID) |
| 993 | { |
| 994 | this->GPUMemoryLogVerbosity = verbosity; |
| 995 | } |
| 996 | } |
| 997 | } |
| 998 | return this->GPUMemoryLogVerbosity; |
| 999 | } |
| 1000 | |
| 1001 | void vtkWebGPUConfiguration::DumpMemoryStatistics() |
| 1002 | { |
no outgoing calls
no test coverage detected