diff options
author | Nicholas Nethercote <nnethercote@mozilla.com> | 2014-07-08 10:50:25 +1000 |
---|---|---|
committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2014-07-08 10:58:07 +1000 |
commit | 24d3979ce871dba7f20168dd0aebe5abd69644e7 (patch) | |
tree | 457dc7fb0589a2c1467be33c162fd1d7bc08b151 /src/components/util/util.rs | |
parent | f8fbf557f12a99128c9b86b06afe6ce9a916d434 (diff) | |
download | servo-24d3979ce871dba7f20168dd0aebe5abd69644e7.tar.gz servo-24d3979ce871dba7f20168dd0aebe5abd69644e7.zip |
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.
Diffstat (limited to 'src/components/util/util.rs')
-rw-r--r-- | src/components/util/util.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/components/util/util.rs b/src/components/util/util.rs index 2e206b1fe8e..31f0b2295c9 100644 --- a/src/components/util/util.rs +++ b/src/components/util/util.rs @@ -24,6 +24,8 @@ extern crate rand; extern crate rustrt; extern crate serialize; extern crate sync; +#[cfg(target_os="macos")] +extern crate task_info; extern crate std_time = "time"; extern crate std_url = "url"; |