Add profiling spans under cargo_to_crate_graph

This commit is contained in:
Laurențiu Nicola
2021-04-22 21:25:29 +03:00
parent e9fea823a0
commit 6b187af337
4 changed files with 7 additions and 3 deletions

View File

@@ -77,6 +77,7 @@ impl ProcMacroClient {
}
pub fn by_dylib_path(&self, dylib_path: &Path) -> Vec<ProcMacro> {
let _p = profile::span("ProcMacroClient::by_dylib_path");
match version::read_dylib_info(dylib_path) {
Ok(info) => {
if info.version.0 < 1 || info.version.1 < 47 {