Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rename _PyTraceResetPeak to _PyTraceMalloc_ResetPeak
  • Loading branch information
markshannon committed May 12, 2023
commit 0dd7ba287d97172711a51ba3499aa514d7d504ad
2 changes: 1 addition & 1 deletion Include/tracemalloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ PyAPI_FUNC(size_t) _PyTraceMalloc_GetMemory(void);
PyAPI_FUNC(PyObject *) _PyTraceMalloc_GetTracedMemory(void);

/* Set the peak size of traced memory blocks to the current size */
PyAPI_FUNC(void) _PyTraceResetPeak(void);
PyAPI_FUNC(void) _PyTraceMalloc_ResetPeak(void);

#endif

Expand Down
2 changes: 1 addition & 1 deletion Modules/_tracemalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static PyObject *
_tracemalloc_reset_peak_impl(PyObject *module)
/*[clinic end generated code: output=140c2870f691dbb2 input=18afd0635066e9ce]*/
{
_PyTraceResetPeak();
_PyTraceMalloc_ResetPeak();
Py_RETURN_NONE;
}

Expand Down
2 changes: 1 addition & 1 deletion Python/tracemalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ _PyTraceMalloc_GetTracedMemory(void)
}

void
_PyTraceResetPeak(void)
_PyTraceMalloc_ResetPeak(void)
{
if (!tracemalloc_config.tracing) {
return;
Expand Down