Skip to content

Switch from profimp to tuna for parsing import profiles - #3620

Merged
flying-sheep merged 2 commits into
mainfrom
pa/no-profimp
May 5, 2025
Merged

Switch from profimp to tuna for parsing import profiles#3620
flying-sheep merged 2 commits into
mainfrom
pa/no-profimp

Conversation

@flying-sheep

@flying-sheep flying-sheep commented May 5, 2025

Copy link
Copy Markdown
Member

profimp was last released in 2018, so I’m switching to native profiling (and tuna for parsing) instead.

  • Release notes not necessary because: dev change

@codecov

codecov Bot commented May 5, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.67%. Comparing base (813608e) to head (11b08f9).
⚠️ Report is 49 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3620   +/-   ##
=======================================
  Coverage   75.67%   75.67%           
=======================================
  Files         114      114           
  Lines       13143    13143           
=======================================
  Hits         9946     9946           
  Misses       3197     3197           

Comment thread tests/test_performance.py
data = json.loads(proc.stdout)
return descend(data, set(modules), [])
with NamedTemporaryFile() as f:
Path(f.name).write_bytes(proc.stderr)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why stderr here? just curious since it was stdout.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completely different thing happening here:

  • profimp does ✨something✨ to create the profile and emits JSON on stdout
  • PYTHONPROFILEIMPORTTIME/-X importtime causes Python itself to emit import profiling data on stderr in a text format

@flying-sheep
flying-sheep merged commit 5106998 into main May 5, 2025
@flying-sheep
flying-sheep deleted the pa/no-profimp branch May 5, 2025 09:00
meeseeksmachine pushed a commit to meeseeksmachine/scanpy that referenced this pull request May 5, 2025
flying-sheep added a commit that referenced this pull request May 5, 2025
…files (#3621)

Co-authored-by: Philipp A <flying-sheep@web.de>
ilan-gold added a commit that referenced this pull request May 19, 2025
* update normalize_total & remove dep

* refactor: `normalize_total` with Numba (#3593)

Co-authored-by: Philipp A. <flying-sheep@web.de>

* fix doctest

* add release note

* Switch from profimp to tuna for parsing import profiles (#3620)

* [pre-commit.ci] pre-commit autoupdate (#3622)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Philipp A. <flying-sheep@web.de>

* Fix typo (#3555)

Co-authored-by: Phil Schaf <flying-sheep@web.de>

* Switch to fast-array-utils (#3598)

Co-authored-by: Rodrigo Goya <rgoya@users.noreply.github.com>

* tSNE components parameter (#2803)

Co-authored-by: Phil Schaf <flying-sheep@web.de>

* Simplify scale (#3351)

Co-authored-by: Intron7 <severin.dicks@icloud.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* remove layers test

* explicit return and fix the info message

* remove unnecessary ravel's

* precision fix

* (fix): maintain data type properly.

* (fix): remove artifact storage

* (refactor): use nice f-a-u typing

---------

Co-authored-by: Philipp A. <flying-sheep@web.de>
Co-authored-by: Selman Özleyen <32667648+selmanozleyen@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Swastik Mishra <4453983+swstkm@users.noreply.github.com>
Co-authored-by: Rodrigo Goya <rgoya@users.noreply.github.com>
Co-authored-by: Kitsune <48340051+ch1ru@users.noreply.github.com>
Co-authored-by: selmanozleyen <syozleyen@gmail.com>
Co-authored-by: ilan-gold <ilanbassgold@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integration Testing CI Install Failure on python 3.12

2 participants