| Index: runtime/vm/service.cc
|
| diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
|
| index 8907dc3dc1ac98af485de9c28d17df01d0974f03..35178e3007804bff98da41b2dd03cb6f1f71fb42 100644
|
| --- a/runtime/vm/service.cc
|
| +++ b/runtime/vm/service.cc
|
| @@ -1374,7 +1374,16 @@ static bool HandleProfile(Isolate* isolate, JSONStream* js) {
|
| // A full profile includes disassembly of all Dart code objects.
|
| // TODO(johnmccutchan): Add sub command to trigger full code dump.
|
| bool full_profile = false;
|
| - Profiler::PrintToJSONStream(isolate, js, full_profile);
|
| + const char* tags_option = js->LookupOption("tags");
|
| + bool use_tags = true;
|
| + if (tags_option != NULL) {
|
| + if (strcmp("hide", tags_option) != 0) {
|
| + PrintError(js, "Invalid tags option value: %s\n", tags_option);
|
| + return true;
|
| + }
|
| + use_tags = false;
|
| + }
|
| + Profiler::PrintToJSONStream(isolate, js, full_profile, use_tags);
|
| return true;
|
| }
|
|
|
|
|