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

Unified Diff: runtime/bin/vmservice/observatory/lib/src/service/object.dart

Issue 429293002: Add request tracing to Observatory: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 years, 4 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
Index: runtime/bin/vmservice/observatory/lib/src/service/object.dart
diff --git a/runtime/bin/vmservice/observatory/lib/src/service/object.dart b/runtime/bin/vmservice/observatory/lib/src/service/object.dart
index 01ebe5f59a2c179611844b41ee9290918e3d488d..a995734b2d207f357303ba477fbc01cef7ffe9c6 100644
--- a/runtime/bin/vmservice/observatory/lib/src/service/object.dart
+++ b/runtime/bin/vmservice/observatory/lib/src/service/object.dart
@@ -416,6 +416,9 @@ abstract class VM extends ServiceObjectOwner {
Future<ObservableMap> getAsMap(String id) {
return getString(id).then((response) {
var map = _parseJSON(response);
+ if (Tracer.current != null) {
+ Tracer.current.trace("Received response for ${id}", map:map);
+ }
return _processMap(map);
}).catchError((error) {
// ServiceError, forward to VM's ServiceError stream.
« no previous file with comments | « runtime/bin/vmservice/observatory/lib/src/elements/stack_frame.dart ('k') | runtime/bin/vmservice/observatory/lib/tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698