Skip to content

Commit 6c1d9e5

Browse files
author
Stephan Dilly
committed
add timing
1 parent 2df83df commit 6c1d9e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

asyncgit/src/sync/blame.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use crate::{
55
error::{Error, Result},
66
sync::get_commits_info,
77
};
8+
use scopetime::scope_time;
89
use std::collections::{HashMap, HashSet};
910
use std::io::{BufRead, BufReader};
1011
use std::path::Path;
@@ -53,6 +54,8 @@ pub fn blame_file(
5354
//TODO: remove until we actually use this on specific commits, right now not even the unittests cover this
5455
blame_at: &BlameAt,
5556
) -> Result<FileBlame> {
57+
scope_time!("blame_file");
58+
5659
let repo = utils::repo(repo_path)?;
5760
let commit_id = match blame_at {
5861
BlameAt::Head => utils::get_head_repo(&repo)?,

0 commit comments

Comments
 (0)