MCPcopy Create free account
hub / github.com/apify/crawlee-python / MemoryInfo

Class MemoryInfo

src/crawlee/_utils/system.py:87–103  ·  view source on GitHub ↗

Information about system memory.

Source from the content-addressed store, hash-verified

85
86
87class MemoryInfo(MemoryUsageInfo):
88 """Information about system memory."""
89
90 model_config = ConfigDict(validate_by_name=True, validate_by_alias=True)
91
92 total_size: Annotated[
93 ByteSize, PlainValidator(ByteSize.validate), PlainSerializer(lambda size: size.bytes), Field(alias='totalSize')
94 ]
95 """Total memory available in the system."""
96
97 system_wide_used_size: Annotated[
98 ByteSize,
99 PlainValidator(ByteSize.validate),
100 PlainSerializer(lambda size: size.bytes),
101 Field(alias='systemWideUsedSize'),
102 ]
103 """Total memory used by all processes system-wide (including non-crawlee processes)."""
104
105
106def get_cpu_info() -> CpuInfo:

Calls

no outgoing calls