API for CPU time / memory usage
- Dominant language
- Haskell
- Stars
- 91
- Forks
- 91
- PR merge metrics
- No merged PRs in 30d
Description
It would be like waitForProcess, except returning a statistics list.
On Linux/BSD, this is the wait4 system call.
On Windows, these can be extracted with GetProcessMemoryInfo/GetProcessTimes similarly to the exit code.
On Mac, wait4 returns the times, but getting memory statistics requires a tricky [Mach task info call](http://www.foldr.org/~michaelw/log/computers/macosx/task-info-fun-with-mach) which probably doesn't work on dead child processes (and I have no easy way of testing it).
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the existing waitForProcess API and its platform-specific implementations. Compare the Linux/BSD wait4, Windows GetProcessMemoryInfo/GetProcessTimes, and macOS task-info approaches described here. Done means agreeing on a cross-platform statistics API and confirming its behavior for each supported operating system.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- api, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100