---
title: "pyinstrument 5.1.4 Breaking Changes on PyPI | Since.dev"
description: "What each pyinstrument release removed, renamed or changed: 9 breaking changes in 2 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/pyinstrument
last_updated: 2026-12-04
---

# pyinstrument breaking changes

pyinstrument 5.1.4 (November 27, 2026) is its newest release with breaking changes, 6 of them. The first: Removed pyinstrument.frame_ops.combine_frames. Every breaking API change we have recorded in pyinstrument on PyPI: 9 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.1.4`, released November 27, 2026. [Source repository](https://github.com/joerick/pyinstrument)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [5.1.3](#v-5-1-3) to [5.1.4](#v-5-1-4): 6 breaking changes in 1 version.

## pyinstrument 5.1.4 breaking changes

pyinstrument 5.1.4, released November 27, 2026: 6 breaking changes.

- **Removed** `pyinstrument.frame_ops.combine_frames`  

pyinstrument.frame_ops.combine_frames was removed in pyinstrument 5.1.4 [pypi.org](https://pypi.org/project/pyinstrument/5.1.4/)
- **Removed** `pyinstrument.processors.combine_frames`  

pyinstrument.processors.combine_frames was removed in pyinstrument 5.1.4 [pypi.org](https://pypi.org/project/pyinstrument/5.1.4/)
- **Behavior changed**  

Resampled durations now use whole intervals, omitting the final partial interval, so resampled results differ from before. [github.com](https://github.com/joerick/pyinstrument/releases/tag/v5.1.4)
- **Behavior changed** `flat_time`  

With flat_time="total", time is now summed across call sites without double-counting recursive calls, so reported totals change. [github.com](https://github.com/joerick/pyinstrument/releases/tag/v5.1.4)
- **Signature changed** `pyinstrument.renderers.pstatsrenderer.PstatsRenderer.render_frame`  

Was def render_frame(self, frame: Frame | None, stats: StatsDict) -> None; now def render_frame(self, frame: Frame | None, stats: StatsDict, keys_on_stack: set\[FrameKey\] | None = None) -> None. [pypi.org](https://pypi.org/project/pyinstrument/5.1.4/)
- **Signature changed** `pyinstrument.renderers.PstatsRenderer.render_frame`  

Was def render_frame(self, frame: Frame | None, stats: StatsDict) -> None; now def render_frame(self, frame: Frame | None, stats: StatsDict, keys_on_stack: set\[FrameKey\] | None = None) -> None. [pypi.org](https://pypi.org/project/pyinstrument/5.1.4/)

## pyinstrument 5.1.3 breaking changes

pyinstrument 5.1.3, released July 29, 2026: 3 breaking changes.

- **Removed** `pyinstrument.vendor.appdirs`  

pyinstrument.vendor.appdirs was removed in pyinstrument 5.1.3 [pypi.org](https://pypi.org/project/pyinstrument/5.1.3/)
- **Signature changed** `pyinstrument.Profiler.__exit__`  

Was def \_\_exit\_\_(self, \*args: Any); now def \_\_exit\_\_(self, exc_type: type\[BaseException\] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None. [pypi.org](https://pypi.org/project/pyinstrument/5.1.3/)
- **Signature changed** `pyinstrument.profiler.Profiler.__exit__`  

Was def \_\_exit\_\_(self, \*args: Any); now def \_\_exit\_\_(self, exc_type: type\[BaseException\] | None, exc_value: BaseException | None, traceback: types.TracebackType | None) -> None. [pypi.org](https://pypi.org/project/pyinstrument/5.1.3/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
