(*args, **kwargs)
| 72 | def check_bytes_allocated(f): |
| 73 | @wraps(f) |
| 74 | def wrapper(*args, **kwargs): |
| 75 | gc.collect() |
| 76 | allocated_bytes = pa.total_allocated_bytes() |
| 77 | try: |
| 78 | return f(*args, **kwargs) |
| 79 | finally: |
| 80 | assert pa.total_allocated_bytes() == allocated_bytes |
| 81 | return wrapper |
| 82 | |
| 83 |