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

Side by Side Diff: runtime/vm/service.cc

Issue 185563013: Small changes in profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
« runtime/vm/profiler.cc ('K') | « runtime/vm/profiler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #include "vm/service.h" 5 #include "vm/service.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/coverage.h" 10 #include "vm/coverage.h"
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 if (!code.IsNull()) { 1085 if (!code.IsNull()) {
1086 code.PrintToJSONStream(js, false); 1086 code.PrintToJSONStream(js, false);
1087 return true; 1087 return true;
1088 } 1088 }
1089 PrintError(js, "Could not find code at %" Px "", pc); 1089 PrintError(js, "Could not find code at %" Px "", pc);
1090 return true; 1090 return true;
1091 } 1091 }
1092 1092
1093 1093
1094 static bool HandleProfile(Isolate* isolate, JSONStream* js) { 1094 static bool HandleProfile(Isolate* isolate, JSONStream* js) {
1095 Profiler::PrintToJSONStream(isolate, js, true); 1095 // A full profile includes disassembly of all Dart code objects.
1096 // TODO(johnmccutchan): Add sub command to trigger full code dump.
1097 bool full_profile = false;
1098 Profiler::PrintToJSONStream(isolate, js, full_profile);
1096 return true; 1099 return true;
1097 } 1100 }
1098 1101
1099 static bool HandleCoverage(Isolate* isolate, JSONStream* js) { 1102 static bool HandleCoverage(Isolate* isolate, JSONStream* js) {
1100 CodeCoverage::PrintToJSONStream(isolate, js); 1103 CodeCoverage::PrintToJSONStream(isolate, js);
1101 return true; 1104 return true;
1102 } 1105 }
1103 1106
1104 1107
1105 static bool HandleAllocationProfile(Isolate* isolate, JSONStream* js) { 1108 static bool HandleAllocationProfile(Isolate* isolate, JSONStream* js) {
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 while (current != NULL) { 1360 while (current != NULL) {
1358 if (strcmp(name, current->name()) == 0) { 1361 if (strcmp(name, current->name()) == 0) {
1359 return current; 1362 return current;
1360 } 1363 }
1361 current = current->next(); 1364 current = current->next();
1362 } 1365 }
1363 return NULL; 1366 return NULL;
1364 } 1367 }
1365 1368
1366 } // namespace dart 1369 } // namespace dart
OLDNEW
« runtime/vm/profiler.cc ('K') | « runtime/vm/profiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698