File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
analysis_server/lib/src/cider
analyzer/lib/src/dart/micro Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -207,6 +207,8 @@ class CiderCompletionComputer {
207
207
@required LibraryElement element,
208
208
@required OperationPerformanceImpl performance,
209
209
}) {
210
+ performance.getDataInt ('libraryCount' ).increment ();
211
+
210
212
var path = element.source.fullName;
211
213
var signature = _fileResolver.getLibraryLinkedSignature (
212
214
path: path,
@@ -215,6 +217,7 @@ class CiderCompletionComputer {
215
217
216
218
var cacheEntry = _cache._importedLibraries[path];
217
219
if (cacheEntry == null || cacheEntry.signature != signature) {
220
+ performance.getDataInt ('libraryCompute' ).increment ();
218
221
computedImportedLibraries.add (path);
219
222
var suggestions = _librarySuggestions (element);
220
223
cacheEntry = _CiderImportedLibrarySuggestions (
Original file line number Diff line number Diff line change @@ -127,12 +127,16 @@ class LibraryAnalyzer {
127
127
// Resolve URIs in directives to corresponding sources.
128
128
FeatureSet featureSet = units[_library].featureSet;
129
129
130
- units.forEach ((file, unit) {
131
- _validateFeatureSet (unit, featureSet);
132
- _resolveUriBasedDirectives (file, unit);
130
+ performance.run ('resolveUriDirectives' , (performance) {
131
+ units.forEach ((file, unit) {
132
+ _validateFeatureSet (unit, featureSet);
133
+ _resolveUriBasedDirectives (file, unit);
134
+ });
133
135
});
134
136
135
- _libraryElement = _elementFactory.libraryOfUri (_library.uriStr);
137
+ performance.run ('libraryElement' , (performance) {
138
+ _libraryElement = _elementFactory.libraryOfUri (_library.uriStr);
139
+ });
136
140
137
141
performance.run ('resolveDirectives' , (performance) {
138
142
_resolveDirectives (units, forCompletion);
You can’t perform that action at this time.
0 commit comments