/// Ensure that we've collected all target-specific information to compile
/// all the units mentioned in `units`.
fn probe_target_info(&mut self) -> CargoResult<()> {
+ let _p = profile::start("Context::probe_target_info");
debug!("probe_target_info");
let host_target_same = match self.requested_target() {
Some(s) if s != self.config.rustc()?.host => false,
use std::path::PathBuf;
-use util::{self, internal, CargoResult, ProcessBuilder};
+use util::{self, internal, profile, CargoResult, ProcessBuilder};
/// Information on the `rustc` executable
#[derive(Debug)]
/// If successful this function returns a description of the compiler along
/// with a list of its capabilities.
pub fn new(path: PathBuf, wrapper: Option<PathBuf>) -> CargoResult<Rustc> {
+ let _p = profile::start("Rustc::new");
+
let mut cmd = util::process(&path);
cmd.arg("-vV");