Skip to content

Commit

Permalink
Patch out thread accounting
Browse files Browse the repository at this point in the history
Since this issue (SeattleTestbed/repy_v2#98), we decide to patch out thread accounting.
  • Loading branch information
XuefengHuang committed Feb 9, 2016
1 parent b39ae1d commit f99be53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion files/seattle/seattle_repy/repyV2/nonportable.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ def get_resources():
usage["memory"] = os_api.get_process_rss()

# Get the thread specific CPU usage
usage["threadcpu"] = os_api.get_current_thread_cpu_time()
# Since this issue (https://github.com/SeattleTestbed/repy_v2/issues/98#),
# we decide to patch out thread accounting.
usage["threadcpu"] = os_api.get_process_cpu_time(pid)


# Windows Specific versions
Expand Down

0 comments on commit f99be53

Please sign in to comment.