mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-26 21:37:40 +00:00
13 lines
238 B
Python
13 lines
238 B
Python
from typing import Any
|
|
|
|
from pympler import asizeof
|
|
|
|
|
|
def _get_object_bytes(obj: Any) -> int:
|
|
"""Get the bytes of a object in memory
|
|
|
|
Args:
|
|
obj (Any): The object to return the bytes
|
|
"""
|
|
return asizeof.asizeof(obj)
|