aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/util/util.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2014-07-08 10:50:25 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2014-07-08 10:58:07 +1000
commit24d3979ce871dba7f20168dd0aebe5abd69644e7 (patch)
tree457dc7fb0589a2c1467be33c162fd1d7bc08b151 /src/components/util/util.rs
parentf8fbf557f12a99128c9b86b06afe6ce9a916d434 (diff)
downloadservo-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.rs2
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";