MCPcopy Index your code
hub / github.com/dask/dask / __sizeof__

Method __sizeof__

dask/_task_spec.py:423–427  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

421 return False
422
423 def __sizeof__(self) -> int:
424 all_slots = self.get_all_slots()
425 return sum(sizeof(getattr(self, sl)) for sl in all_slots) + sys.getsizeof(
426 type(self)
427 )
428
429 def substitute(
430 self, subs: dict[KeyType, KeyType | GraphNode], key: KeyType | None = None

Callers 1

sizeof_spmatrix_dokFunction · 0.45

Calls 2

get_all_slotsMethod · 0.95
sumFunction · 0.50

Tested by

no test coverage detected