Bug 1221846 - Properly close the tasktracer property in the GeckoSampler JSON blob. r=BenWa draft
authorMike Conley <mconley@mozilla.com>
Tue, 15 Dec 2015 19:12:17 -0500
changeset 318656 c4ef8f49ab072da6287be8cab0393cc16be9edfe
parent 318655 0666526a249c106274a4c764e325cd9810e9a2e7
child 512478 35001545da8811ba6448c9d36fcccb7672a442f2
push id8904
push usermconley@mozilla.com
push dateMon, 04 Jan 2016 17:36:48 +0000
reviewersBenWa
bugs1221846
milestone46.0a1
Bug 1221846 - Properly close the tasktracer property in the GeckoSampler JSON blob. r=BenWa
tools/profiler/core/GeckoSampler.cpp
--- a/tools/profiler/core/GeckoSampler.cpp
+++ b/tools/profiler/core/GeckoSampler.cpp
@@ -518,16 +518,17 @@ void GeckoSampler::StreamJSON(Spliceable
     aWriter.StartObjectProperty("meta");
       StreamMetaJSCustomObject(aWriter);
     aWriter.EndObject();
 
     // Data of TaskTracer doesn't belong in the circular buffer.
     if (TaskTracer()) {
       aWriter.StartObjectProperty("tasktracer");
       StreamTaskTracer(aWriter);
+      aWriter.EndObject();
     }
 
     // Lists the samples for each ThreadProfile
     aWriter.StartArrayProperty("threads");
     {
       SetPaused(true);
 
       {