Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Unified Diff: pkg/analysis_server/lib/src/get_handler.dart

Issue 874083002: add periodic delay in analysis to reduce request processing latency (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add flag to disable delay along with comments explaining why the workaround was added Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/server/driver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/get_handler.dart
diff --git a/pkg/analysis_server/lib/src/get_handler.dart b/pkg/analysis_server/lib/src/get_handler.dart
index 1cc1e341842278a4883416bcce5fc4958fd01543..e6ba76a097780856bc3c23792d9e7986dc54f39b 100644
--- a/pkg/analysis_server/lib/src/get_handler.dart
+++ b/pkg/analysis_server/lib/src/get_handler.dart
@@ -1074,6 +1074,9 @@ class GetHandler {
options.preserveComments,
last: true);
buffer.write('</p>');
+ int freq = AnalysisServer.performOperationDelayFreqency;
+ String delay = freq > 0 ? '1 ms every $freq ms' : 'off';
+ buffer.write('<p><b>perform operation delay:</b> $delay</p>');
}, (StringBuffer buffer) {
_writeSubscriptionMap(
buffer,
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/server/driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698