Bug 962731 - Properly save root profiler tags in profiles. r=ehsan

This commit is contained in:
Viktor Stanchev 2014-01-30 13:13:23 -05:00
Родитель e98620e826
Коммит 9e0e77e8e6
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -363,15 +363,6 @@ void ThreadProfile::BuildJSObject(Builder& b,
}
switch (entry.mTagName) {
case 's':
sample = b.CreateObject();
b.DefineProperty(sample, "name", tagStringData);
frames = b.CreateArray();
b.DefineProperty(sample, "frames", frames);
b.ArrayPush(samples, sample);
// Created lazily
markers = nullptr;
break;
case 'm':
{
if (sample) {
@ -411,6 +402,15 @@ void ThreadProfile::BuildJSObject(Builder& b,
}
}
break;
case 's':
sample = b.CreateObject();
b.DefineProperty(sample, "name", tagStringData);
frames = b.CreateArray();
b.DefineProperty(sample, "frames", frames);
b.ArrayPush(samples, sample);
// Created lazily
markers = nullptr;
// Fall though to create a label for the 's' tag
case 'c':
case 'l':
{