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

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 1786703004: Display source profiling information in Observatory (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of service; 5 part of service;
6 6
7 // Some value smaller than the object ring, so requesting a large array 7 // Some value smaller than the object ring, so requesting a large array
8 // doesn't result in an expired ref because the elements lapped it in the 8 // doesn't result in an expired ref because the elements lapped it in the
9 // object ring. 9 // object ring.
10 const int kDefaultFieldLimit = 100; 10 const int kDefaultFieldLimit = 100;
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 code.profile = null; 1164 code.profile = null;
1165 } else if (value is ServiceFunction) { 1165 } else if (value is ServiceFunction) {
1166 ServiceFunction function = value; 1166 ServiceFunction function = value;
1167 function.profile = null; 1167 function.profile = null;
1168 } 1168 }
1169 }); 1169 });
1170 } 1170 }
1171 1171
1172 static const kCallSitesReport = '_CallSites'; 1172 static const kCallSitesReport = '_CallSites';
1173 static const kPossibleBreakpointsReport = 'PossibleBreakpoints'; 1173 static const kPossibleBreakpointsReport = 'PossibleBreakpoints';
1174 static const kProfileReport = '_Profile';
1174 1175
1175 Future<ServiceMap> getSourceReport(List<String> report_kinds, 1176 Future<ServiceMap> getSourceReport(List<String> report_kinds,
1176 [Script script, 1177 [Script script,
1177 int startPos, 1178 int startPos,
1178 int endPos]) { 1179 int endPos]) {
1179 var params = { 'reports' : report_kinds }; 1180 var params = { 'reports' : report_kinds };
1180 if (script != null) { 1181 if (script != null) {
1181 params['scriptId'] = script.id; 1182 params['scriptId'] = script.id;
1182 } 1183 }
1183 if (startPos != null) { 1184 if (startPos != null) {
(...skipping 2835 matching lines...) Expand 10 before | Expand all | Expand 10 after
4019 var v = list[i]; 4020 var v = list[i];
4020 if ((v is ObservableMap) && _isServiceMap(v)) { 4021 if ((v is ObservableMap) && _isServiceMap(v)) {
4021 list[i] = owner.getFromMap(v); 4022 list[i] = owner.getFromMap(v);
4022 } else if (v is ObservableList) { 4023 } else if (v is ObservableList) {
4023 _upgradeObservableList(v, owner); 4024 _upgradeObservableList(v, owner);
4024 } else if (v is ObservableMap) { 4025 } else if (v is ObservableMap) {
4025 _upgradeObservableMap(v, owner); 4026 _upgradeObservableMap(v, owner);
4026 } 4027 }
4027 } 4028 }
4028 } 4029 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698