зеркало из https://github.com/mozilla/gecko-dev.git
Bug 962731 - Properly save root profiler tags in profiles. r=ehsan
This commit is contained in:
Родитель
e98620e826
Коммит
9e0e77e8e6
|
@ -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':
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче