8000 Add energy measurements support by cappadokes · Pull Request #140 · python/pyperformance · GitHub
[go: up one dir, main page]

Skip to content

Add energy measurements support #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
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
Next Next commit
Added LD_LIBRARY_PATH to --inherit-environ when --track-energy is used
  • Loading branch information
cappadokes committed Mar 28, 2022
commit e08458c3576c5cbe731e20849959555152971902
2 changes: 2 additions & 0 deletions pyperformance/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,10 @@ def get_pyperf_opts(options):
try:
lib = env['LIBREADEN']
f = env['ENFILE']
ld = env['LD_LIBRARY_PATH']
options.inherit_environ.append('LIBREADEN')
options.inherit_environ.append('ENFILE')
options.inherit_environ.append('LD_LIBRARY_PATH')
except:
raise OSError('--track-energy needs LIBREADEN, ENFILE environment variables to work.')
opts.append('--inherit-environ=%s' % ','.join(options.inherit_environ))
Expand Down
0