mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Real metrics
This commit is contained in:
parent
cdddd205f6
commit
75e67ee74e
1 changed files with 3 additions and 3 deletions
|
@ -18,8 +18,8 @@ pub fn run_metrics() -> Result<()> {
|
||||||
|
|
||||||
{
|
{
|
||||||
let _d = pushd("target");
|
let _d = pushd("target");
|
||||||
let api_token = env::var("METRICS_TOKEN").unwrap();
|
let metrics_token = env::var("METRICS_TOKEN").unwrap();
|
||||||
let repo = format!("https://{}@github.com/rust-analyzer/metrics.git", api_token);
|
let repo = format!("https://{}@github.com/rust-analyzer/metrics.git", metrics_token);
|
||||||
run!("git clone --depth 1 {}", repo)?;
|
run!("git clone --depth 1 {}", repo)?;
|
||||||
let _d = pushd("metrics");
|
let _d = pushd("metrics");
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ impl Metrics {
|
||||||
rm_rf("./target/release")?;
|
rm_rf("./target/release")?;
|
||||||
|
|
||||||
let build = Instant::now();
|
let build = Instant::now();
|
||||||
// run!("cargo build --release --package rust-analyzer --bin rust-analyzer")?;
|
run!("cargo build --release --package rust-analyzer --bin rust-analyzer")?;
|
||||||
let build = build.elapsed();
|
let build = build.elapsed();
|
||||||
self.report("build", build.as_millis() as u64, "ms");
|
self.report("build", build.as_millis() as u64, "ms");
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue