Add a task_info crate and a task_basic_info module within it.

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.
This commit is contained in:
Nicholas Nethercote 2014-07-08 10:50:25 +10:00
parent f8fbf557f1
commit 24d3979ce8
10 changed files with 184 additions and 13 deletions

1
configure vendored
View file

@ -534,6 +534,7 @@ CFG_SUBMODULES="\
support/glfw/glfw \
support/glfw/glfw-rs \
platform/macos/rust-cocoa \
platform/macos/rust-task_info \
${CFG_SUBMODULES}"
fi