Skip to content

Commit 49a93a0

Browse files
pqCommit Queue
authored andcommitted
[analytics] show getFixes operation timings
Bug: #60258 Change-Id: Ie1f5006e32d3e0563e35d64354db4c5543758dc0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/414164 Commit-Queue: Phil Quitslund <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent b1849f5 commit 49a93a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/analysis_server/lib/src/status/diagnostics.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,9 +1576,9 @@ class GetFixesPage extends DiagnosticPageWithNav with PerformanceChartMixin {
15761576
var shortName = pathContext.basename(request.path);
15771577
buf.writeln(
15781578
'<tr>'
1579-
'<td class="pre right">'
1579+
'<td class="pre right"><a href="/timing?id=${request.id}&kind=getFixes">'
15801580
'${_formatTiming(request)}'
1581-
'</td>'
1581+
'</a></td>'
15821582
'<td>${escape(shortName)}</td>'
15831583
'<td><code>${escape(request.snippet)}</code></td>'
15841584
'</tr>',
@@ -1989,6 +1989,8 @@ class TimingPage extends DiagnosticPageWithNav with PerformanceChartMixin {
19891989
List<RequestPerformance>? itemsSlow;
19901990
if (kind == 'completion') {
19911991
items = server.recentPerformance.completion.items.toList();
1992+
} else if (kind == 'getFixes') {
1993+
items = server.recentPerformance.getFixes.items.toList();
19921994
} else {
19931995
items = server.recentPerformance.requests.items.toList();
19941996
itemsSlow = server.recentPerformance.slowRequests.items.toList();

0 commit comments

Comments
 (0)