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

Unified Diff: runtime/vm/json_stream.h

Issue 217323006: Redo allocationprofile options (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/heap_profile.dart ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/json_stream.h
diff --git a/runtime/vm/json_stream.h b/runtime/vm/json_stream.h
index 6b71a9d7e56ea0b91b44a2a4d24891c966419e61..ab0679962d758f9f30dcc866f477eb16a6254d53 100644
--- a/runtime/vm/json_stream.h
+++ b/runtime/vm/json_stream.h
@@ -56,6 +56,12 @@ class JSONStream : ValueObject {
const char* LookupOption(const char* key) const;
+ bool HasOption(const char* key) const;
+
+ // Returns true if there is an option with key and value, false
+ // otherwise.
+ bool OptionIs(const char* key, const char* value) const;
+
const char* command() const { return command_; }
const char** arguments() const { return arguments_; }
const char** option_keys() const { return option_keys_; }
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/heap_profile.dart ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698