Skip to content

Commit

Permalink
clean log.
Browse files Browse the repository at this point in the history
  • Loading branch information
songww committed Mar 2, 2022
1 parent 0772941 commit 922479c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/vimview/gridview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ mod imp {
for lineno in 0..rows {
cr.move_to(0., y);
y += metrics.height();
let ins = std::time::Instant::now();
let line = lines.get(lineno).unwrap();
let layoutline = if let Some((layout, layoutline)) = line.cache() {
unsafe {
Expand All @@ -200,9 +199,7 @@ mod imp {
// }
}
let elapsed = instant.elapsed().as_secs_f32() * 1000.;
if elapsed > 10. {
log::warn!("snapshot used: {:.3}ms", elapsed);
}
log::debug!("snapshot used: {:.3}ms", elapsed);
}

fn measure(
Expand Down

0 comments on commit 922479c

Please sign in to comment.