MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / async_wrapper

Method async_wrapper

lightx2v/utils/profiler.py:118–120  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

116 if not self._memory_profile_active:
117 return ""
118
119 stack = _get_memory_profile_stack()
120 try:
121 peak_allocated, peak_reserved = self._read_memory_peak()
122 for context in stack:
123 context._record_memory_peak(peak_allocated, peak_reserved)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected