Skip to content

Conversation

@Micket
Copy link
Contributor

@Micket Micket commented Nov 12, 2025

Intended usage:

EB_PROFILE=profile.out  eb SomeSoftware-1.2.3.eb

snakeviz profile.out  # nice tool to view profiling data

@Micket Micket marked this pull request as draft November 12, 2025 16:45
@Micket Micket marked this pull request as ready for review November 12, 2025 17:02
@branfosj
Copy link
Member

branfosj commented Nov 19, 2025

$ EB_VERBOSE=1 EB_PROFILE=tmp.out eb --show-config
>> Considering 'python'...
>> 'python' version: 3.6.8, which matches Python 3 version requirement (>= 3.5)
>> 'python' is able to import 'easybuild.framework', so retaining it
>> Selected Python command: python (/rds/projects/2017/branfosj-rse/easybuild/venv-dev-EL8/bin/python)
>> Writing profile output to: "tmp.out"
>> python -m cProfile -o tmp.out -m easybuild.main --show-config
Usage: cProfile.py [-o output_file_path] [-s sort] scriptfile [arg] ...

cProfile.py: error: no such option: -m

But the same works if I use Python 3.9 or 3.12. All Python versions mentioned here are RedHat 8.10 OS packages.

@boegel boegel modified the milestones: 5.x, release after 5.2.0 Nov 19, 2025
@boegel boegel changed the title Add environment variable for profiling easybuild Add environment variable for profiling EasyBuild Nov 19, 2025
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.

3 participants