We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2df83df commit 6c1d9e5Copy full SHA for 6c1d9e5
asyncgit/src/sync/blame.rs
@@ -5,6 +5,7 @@ use crate::{
5
error::{Error, Result},
6
sync::get_commits_info,
7
};
8
+use scopetime::scope_time;
9
use std::collections::{HashMap, HashSet};
10
use std::io::{BufRead, BufReader};
11
use std::path::Path;
@@ -53,6 +54,8 @@ pub fn blame_file(
53
54
//TODO: remove until we actually use this on specific commits, right now not even the unittests cover this
55
blame_at: &BlameAt,
56
) -> Result<FileBlame> {
57
+ scope_time!("blame_file");
58
+
59
let repo = utils::repo(repo_path)?;
60
let commit_id = match blame_at {
61
BlameAt::Head => utils::get_head_repo(&repo)?,
0 commit comments