mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
add refilter perf stats
This commit is contained in:
@@ -60,7 +60,11 @@
|
||||
this.pattern = new RegExp(filter.value, 'i');
|
||||
}
|
||||
|
||||
performance.mark('before refilter');
|
||||
const start = performance.now();
|
||||
tree.refilter();
|
||||
console.log('refilter took', performance.now() - start);
|
||||
performance.mark('after refilter');
|
||||
}
|
||||
filter(el) {
|
||||
return (this.pattern ? this.pattern.test(el) : true) ? Visibility.Visible : Visibility.Recurse;
|
||||
|
||||
Reference in New Issue
Block a user