MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / toString

Method toString

openpgl/field/FieldStatistics.h:78–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 std::string toString() const
79 {
80 const std::string tab = "\t";
81 std::stringstream ss;
82 ss << "FieldStatistics:" << std::endl;
83 ss << tab << "numCacheRegions = " << numCacheRegions << std::endl;
84 ss << tab << "numCacheRegionsReserved = " << numCacheRegionsReserved << std::endl;
85 ss << tab << "sizePerCacheRegions = " << sizePerCacheRegions << " bs" << std::endl;
86 ss << tab << "sizeAllCacheRegionsUsed = " << float(sizeAllCacheRegionsUsed) / 1024 / 1024 << " Mbs" << std::endl;
87 ss << tab << "sizeAllCacheRegionsReserved = " << float(sizeAllCacheRegionsReserved) / 1024 / 1024 << " Mbs" << std::endl;
88
89 ss << tab << "timeUpdate = " << timeLastUpdate << " ms" << std::endl;
90 ss << tab << "timeCopySamples = " << timeLastUpdateCopySamples << " ms" << std::endl;
91 ss << tab << "timeSpatialStructureUpdate = " << timeLastUpdateSpatialStructureUpdate << " ms" << std::endl;
92 ss << tab << "timeDirectionalDistriubtionUpdate= " << timeLastUpdateDirectionalDistriubtionUpdate << " ms" << std::endl;
93
94 ss << spatialStructureStatistics.toString();
95 ss << directionalDistributionStatistics.toString();
96
97 return ss.str();
98 }
99};
100
101} // namespace openpgl

Callers 1

Field.hFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected