pyodide / pyodide/pyodide

Xonsh calls unavailable call getrusage resource.getrusage(resource.RUSAGE_SELF)[:2]

Open
#3,302 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
14.8k
Forks
1k
Avg merge
20h 29m
Merged PRs (30d)
19

Description

I attempted to start Xonsh the python based shell.

It dies trying to call - `resource.getrusage(resource.RUSAGE_SELF)[:2]`

[1]

This field is to get time since the start of the process - of all the fields, this one seems like it may be straightforward to fake since start time is the time code for pyodides starts.

It would be good if `resource.getusage` was at least partially implemented - it seems like it used to be with fake values, but trying to import it doesn't show anything in `resource` now.

![image](https://user-images.githubusercontent.com/179677/204541857-dc9f6621-ae64-4b3f-8f55-01877d81b86d.png)

[1]
![image](https://user-images.githubusercontent.com/179677/204542067-97d15400-8b68-4500-9e1d-8ab38c9827ac.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.