Bug 1196845 - Fix invalid JSON in saved Java thread profile; r=BenWa

Saved Java thread profiles are missing a pair of braces. As a result,
the output is invalid JSON.
This commit is contained in:
Jim Chen 2015-08-25 14:52:16 -04:00
parent 8f42e826dc
commit d1b28b092f

View File

@ -549,7 +549,11 @@ void GeckoSampler::StreamJSON(SpliceableJSONWriter& aWriter, double aSinceTime)
if (ProfileJava()) {
mozilla::widget::GeckoJavaSampler::PauseJavaProfiling();
BuildJavaThreadJSObject(aWriter);
aWriter.Start();
{
BuildJavaThreadJSObject(aWriter);
}
aWriter.End();
mozilla::widget::GeckoJavaSampler::UnpauseJavaProfiling();
}