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

Unified Diff: runtime/vm/profiler.cc

Issue 257053003: Always use the same json for null in the vm service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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/vm/profiler.cc
diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
index 95de0bf101709f1ee17fdd934e44fa907e979038..aa725bd005a4843cd569007ac89edf3477e81777 100644
--- a/runtime/vm/profiler.cc
+++ b/runtime/vm/profiler.cc
@@ -1325,8 +1325,8 @@ class CodeRegionTableCallersBuilder {
};
-void Profiler::PrintToJSONStream(Isolate* isolate, JSONStream* stream,
- bool full, TagOrder tag_order) {
+void Profiler::PrintJSON(Isolate* isolate, JSONStream* stream,
+ bool full, TagOrder tag_order) {
ASSERT(isolate == Isolate::Current());
// Disable profile interrupts while processing the buffer.
EndExecution(isolate);
@@ -1461,7 +1461,7 @@ void Profiler::WriteProfile(Isolate* isolate) {
ASSERT(Isolate::Current() == isolate);
JSONStream stream(10 * MB);
intptr_t pid = OS::ProcessId();
- PrintToJSONStream(isolate, &stream, true, Profiler::kNoTags);
+ PrintJSON(isolate, &stream, true, Profiler::kNoTags);
const char* format = "%s/dart-profile-%" Pd "-%" Pd ".json";
intptr_t len = OS::SNPrint(NULL, 0, format,
FLAG_profile_dir, pid, isolate->main_port());
« runtime/vm/object.h ('K') | « runtime/vm/profiler.h ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698