Skip to content

feat: show progress during format conversion - #63

Merged
P403n1x87 merged 1 commit into
mainfrom
feat/conversion-progress
Oct 28, 2026
Merged

P403n1x87 merged 1 commit into
mainfrom
feat/conversion-progress

Conversation

@P403n1x87

Copy link
Copy Markdown
Owner

Converting large profiles can take a long time with no feedback. Add a generic file_progress context manager that reports the fraction of a file read so far from a background thread, by polling the OS-level file position. This keeps presentation out of the readers and works with any of them. open_profile accepts an optional progress callback, and austin2speedscope and austin2pprof use it to show a progress line on stderr when it is a terminal, which is cleared on completion.

Closes #31

Converting large profiles can take a long time with no feedback. Add a
generic file_progress context manager that reports the fraction of a
file read so far from a background thread, by polling the OS-level file
position. This keeps presentation out of the readers and works with any
of them. open_profile accepts an optional progress callback, and
austin2speedscope and austin2pprof use it to show a progress line on
stderr when it is a terminal, which is cleared on completion.

Closes #31

Co-authored-by: Tom Sparrow <793763+sparrowt@users.noreply.github.com>
@P403n1x87

Copy link
Copy Markdown
Owner Author

based on #32

@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.57895% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.40%. Comparing base (f0088bb) to head (b54b445).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
austin/format/__init__.py 78.12% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #63      +/-   ##
==========================================
- Coverage   86.49%   86.40%   -0.10%     
==========================================
  Files          22       22              
  Lines        3088     3118      +30     
  Branches      425      427       +2     
==========================================
+ Hits         2671     2694      +23     
- Misses        322      328       +6     
- Partials       95       96       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@P403n1x87
P403n1x87 marked this pull request as ready for review October 28, 2026 17:31
@P403n1x87
P403n1x87 merged commit abaf669 into main Oct 28, 2026
17 of 19 checks passed
@P403n1x87
P403n1x87 deleted the feat/conversion-progress branch October 28, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Progress output during format conversion

1 participant