| Index: runtime/vm/profiler.cc
|
| diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc
|
| index d57160340dc102db266ad05a6775b4efcaae73b2..335d105018c0c5655d800003d5bb42656aa965c0 100644
|
| --- a/runtime/vm/profiler.cc
|
| +++ b/runtime/vm/profiler.cc
|
| @@ -539,7 +539,6 @@ class CodeRegion : public ZoneAllocated {
|
|
|
| void PrintToJSONArray(Isolate* isolate, JSONArray* events, bool full) {
|
| JSONObject obj(events);
|
| - obj.AddProperty("type", "CodeRegion");
|
| obj.AddProperty("kind", KindToCString(kind()));
|
| obj.AddPropertyF("inclusive_ticks", "%" Pd "", inclusive_ticks());
|
| obj.AddPropertyF("exclusive_ticks", "%" Pd "", exclusive_ticks());
|
| @@ -1504,7 +1503,7 @@ void Profiler::PrintJSON(Isolate* isolate, JSONStream* stream,
|
| ScopeStopwatch sw("CodeTableStream");
|
| // Serialize to JSON.
|
| JSONObject obj(stream);
|
| - obj.AddProperty("type", "Profile");
|
| + obj.AddProperty("type", "CpuProfile");
|
| obj.AddProperty("id", "profile");
|
| obj.AddProperty("samples", samples);
|
| obj.AddProperty("depth", static_cast<intptr_t>(FLAG_profile_depth));
|
|
|