同步操作将从 OpenHarmony-SIG/python 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef Py_TRACEMALLOC_H#define Py_TRACEMALLOC_H#ifndef Py_LIMITED_API/* Track an allocated memory block in the tracemalloc module.Return 0 on success, return -1 on error (failed to allocate memory to storethe trace).Return -2 if tracemalloc is disabled.If memory block is already tracked, update the existing trace. */PyAPI_FUNC(int) PyTraceMalloc_Track(unsigned int domain,uintptr_t ptr,size_t size);/* Untrack an allocated memory block in the tracemalloc module.Do nothing if the block was not tracked.Return -2 if tracemalloc is disabled, otherwise return 0. */PyAPI_FUNC(int) PyTraceMalloc_Untrack(unsigned int domain,uintptr_t ptr);/* Get the traceback where a memory block was allocated.Return a tuple of (filename: str, lineno: int) tuples.Return None if the tracemalloc module is disabled or if the memory blockis not tracked by tracemalloc.Raise an exception and return NULL on error. */PyAPI_FUNC(PyObject*) _PyTraceMalloc_GetTraceback(unsigned int domain,uintptr_t ptr);#endif#endif /* !Py_TRACEMALLOC_H */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。