Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add a `task_info` crate and a `task_basic_info` module within it. #2786
Conversation
The crate provides an interface to the Mac-specific `task_info()` function in general, and the module provides an interface to the TASK_BASIC_INFO flavor. Currently only the `virtual_size` and `resident_size` values of the `task_basic_info` struct are exposed, but there's obvious room for expansion. This is used to implement the -m measurements on Mac.
|
Critic review: https://critic.hoppipolla.co.uk/r/1990 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
Did we decide not to make this a submodule? Anyway, r+ |
Add a `task_info` crate and a `task_basic_info` module within it.
|
Thanks for merging.
In #2720 you suggested an |
The crate provides an interface to the Mac-specific
task_info()function in general, and the module provides an interface to the
TASK_BASIC_INFO flavor. Currently only the
virtual_sizeandresident_sizevalues of thetask_basic_infostruct are exposed, butthere's obvious room for expansion.
This is used to implement the -m measurements on Mac.