MCPcopy Create free account
hub / github.com/alicevision/AliceVision / getDeviceMemoryConsumption

Method getDeviceMemoryConsumption

src/aliceVision/depthMap/Sgm.cpp:83–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83double Sgm::getDeviceMemoryConsumption() const
84{
85 size_t bytes = 0;
86
87 bytes += _depths_dmp.getBytesPadded();
88 bytes += _depthThicknessMap_dmp.getBytesPadded();
89 bytes += _depthSimMap_dmp.getBytesPadded();
90 bytes += _normalMap_dmp.getBytesPadded();
91 bytes += _volumeBestSim_dmp.getBytesPadded();
92 bytes += _volumeSecBestSim_dmp.getBytesPadded();
93 bytes += _volumeSliceAccA_dmp.getBytesPadded();
94 bytes += _volumeSliceAccB_dmp.getBytesPadded();
95 bytes += _volumeAxisAcc_dmp.getBytesPadded();
96
97 return (double(bytes) / (1024.0 * 1024.0));
98}
99
100double Sgm::getDeviceMemoryConsumptionUnpadded() const
101{

Callers 1

Calls 1

getBytesPaddedMethod · 0.45

Tested by

no test coverage detected