def generateReport(self, report): report.name = self.name report.fractionOfUsedMemoryDirty = self.fractionOfUsedMemoryDirty() report.usedMemory = self.usedMemory() report.lastAccessTime = self.lastAccessTime() report.type = type(self) report.id = id(self) for i, (b_ind, block) in enumerate(self._labelers.iteritems()): start = self._blockShape*self._flatBlockIndices[b_ind] stop = numpy.minimum(start + self._blockShape, self.Output.meta.shape) n = MemInfoNode() n.roi = (start, stop) report.children.append(n) block.generateReport(n)
def generateReport(self, report): report.name = self.name report.fractionOfUsedMemoryDirty = self.fractionOfUsedMemoryDirty() report.usedMemory = self.usedMemory() report.lastAccessTime = self.lastAccessTime() report.type = type(self) report.id = id(self) for b_ind, block in self._cache_list.iteritems(): start = self._blockShape * self._get_block_multi_index(b_ind) stop = numpy.minimum(start + self._blockShape, self.Output.meta.shape) n = MemInfoNode() n.roi = (start, stop) report.children.append(n) block.generateReport(n)
def generateReport(self, report): report.name = self.name report.fractionOfUsedMemoryDirty = self.fractionOfUsedMemoryDirty() report.usedMemory = self.usedMemory() report.lastAccessTime = self.lastAccessTime() report.type = type(self) report.id = id(self) for b_ind, block in self._cache_list.iteritems(): start = self._blockShape*self._get_block_multi_index(b_ind) stop = numpy.minimum(start + self._blockShape, self.Output.meta.shape) n = MemInfoNode() n.roi = (start, stop) report.children.append(n) block.generateReport(n)