------------------------------------------------------------------------------
| 1116 | |
| 1117 | //------------------------------------------------------------------------------ |
| 1118 | void vtkPOpenFOAMReader::PrintRequestInformation() |
| 1119 | { |
| 1120 | long long count = 0, minTime = VTK_LONG_LONG_MAX, maxTime = 0; |
| 1121 | size_t minBytes = VTK_UNSIGNED_LONG_LONG_MAX, maxBytes = 0; |
| 1122 | double totalTime = 0, totalBytes = 0; |
| 1123 | for (auto& readerObj : this->Readers) |
| 1124 | { |
| 1125 | if (auto reader = vtkOpenFOAMReader::SafeDownCast(readerObj)) |
| 1126 | { |
| 1127 | minTime = std::min(minTime, reader->GetRequestInformationTimeInMicroseconds()); |
| 1128 | maxTime = std::max(maxTime, reader->GetRequestInformationTimeInMicroseconds()); |
| 1129 | totalTime += reader->GetRequestInformationTimeInMicroseconds(); |
| 1130 | minBytes = std::min(minBytes, reader->GetRequestInformationBytes()); |
| 1131 | maxBytes = std::max(maxBytes, reader->GetRequestInformationBytes()); |
| 1132 | totalBytes += reader->GetRequestInformationBytes(); |
| 1133 | count++; |
| 1134 | } |
| 1135 | } |
| 1136 | if (count > 0) |
| 1137 | { |
| 1138 | std::cout << "vtkPOpenFOAMReader::RequestInformation: " << count |
| 1139 | << " Readers' RequestInformation I/O Time: min=" << (minTime / 1000.0) |
| 1140 | << " ms, max=" << (maxTime / 1000.0) << " ms, avg=" << ((totalTime / count) / 1000.0) |
| 1141 | << " ms" << std::endl; |
| 1142 | std::cout << "vtkPOpenFOAMReader::RequestInformation: " << count |
| 1143 | << " Readers' RequestInformation I/O Size: min=" << (minBytes / (1024.0 * 1024.0)) |
| 1144 | << " MB, max=" << (maxBytes / (1024.0 * 1024.0)) |
| 1145 | << " MB, avg=" << ((totalBytes / count) / (1024.0 * 1024.0)) << " MB" << std::endl; |
| 1146 | } |
| 1147 | } |
| 1148 | |
| 1149 | //------------------------------------------------------------------------------ |
| 1150 | void vtkPOpenFOAMReader::PrintRequestData() |
no test coverage detected