Bug 1374333 - Use TalosContentProfiler for profiling in tsvgx tests. r=rwood

MozReview-Commit-ID: 9auT5RxW2lh

--HG--
extra : rebase_source : 88c9619da71766a5cc2ecfe360bc929d5e9cea3d
extra : source : f91587a87a0b8c72feb8168636b46fb7365a8f08
This commit is contained in:
Mike Conley 2017-06-16 18:09:45 -04:00
Родитель 3400474bb0
Коммит a3fd2a7da6
7 изменённых файлов: 113 добавлений и 7 удалений

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

@ -287,6 +287,21 @@ a circle that only has a fill animates over complex SVG via changes to its
if (parent.reportResults) parent.reportResults(end - start, start);
}
}
addEventListener("load", function(){ rAF(bounce); });
addEventListener("load", function() {
try {
// Outside of talos, this throws a security exception which no-op this file.
// (It's not required nor allowed for addons since Firefox 17)
// It's used inside talos from non-privileged pages (like during tscroll),
// and it works because talos disables all/most security measures.
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
} catch (e) {}
Components.utils.import("resource://gre/modules/Services.jsm");
Services.scriptloader.loadSubScript("chrome://talos-powers-content/content/TalosContentProfiler.js");
TalosContentProfiler.resume("hixie-001.xml loaded", true).then(() => {
rAF(bounce);
});
});
]]></script>
</svg>

До

Ширина:  |  Высота:  |  Размер: 92 KiB

После

Ширина:  |  Высота:  |  Размер: 93 KiB

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

@ -289,6 +289,22 @@ changes to its "cx" and "cy" attributes.
if (parent.reportResults) parent.reportResults(end - start, start);
}
}
addEventListener("load", function(){ rAF(bounce); });
addEventListener("load", function() {
try {
// Outside of talos, this throws a security exception which no-op this file.
// (It's not required nor allowed for addons since Firefox 17)
// It's used inside talos from non-privileged pages (like during tscroll),
// and it works because talos disables all/most security measures.
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
} catch (e) {}
Components.utils.import("resource://gre/modules/Services.jsm");
Services.scriptloader.loadSubScript("chrome://talos-powers-content/content/TalosContentProfiler.js");
TalosContentProfiler.resume("hixie-002.xml loaded", true).then(() => {
rAF(bounce);
});
});
]]></script>
</svg>

До

Ширина:  |  Высота:  |  Размер: 92 KiB

После

Ширина:  |  Высота:  |  Размер: 93 KiB

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

@ -75,6 +75,21 @@ removed from the document.
if (parent.reportResults) parent.reportResults(end - start, start);
}
}
addEventListener("load", function(){ rAF(runTest); });
addEventListener("load", function() {
try {
// Outside of talos, this throws a security exception which no-op this file.
// (It's not required nor allowed for addons since Firefox 17)
// It's used inside talos from non-privileged pages (like during tscroll),
// and it works because talos disables all/most security measures.
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
} catch (e) {}
Components.utils.import("resource://gre/modules/Services.jsm");
Services.scriptloader.loadSubScript("chrome://talos-powers-content/content/TalosContentProfiler.js");
TalosContentProfiler.resume("hixie-003.xml loaded", true).then(() => {
rAF(runTest);
});
});
]]></script>
</svg>

До

Ширина:  |  Высота:  |  Размер: 3.8 KiB

После

Ширина:  |  Высота:  |  Размер: 4.5 KiB

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

@ -76,6 +76,21 @@ removed from the document.
if (parent.reportResults) parent.reportResults(end - start, start);
}
}
addEventListener("load", function(){ rAF(runTest); });
addEventListener("load", function() {
try {
// Outside of talos, this throws a security exception which no-op this file.
// (It's not required nor allowed for addons since Firefox 17)
// It's used inside talos from non-privileged pages (like during tscroll),
// and it works because talos disables all/most security measures.
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
} catch (e) {}
Components.utils.import("resource://gre/modules/Services.jsm");
Services.scriptloader.loadSubScript("chrome://talos-powers-content/content/TalosContentProfiler.js");
TalosContentProfiler.resume("hixie-004.xml loaded", true).then(() => {
rAF(runTest);
});
});
]]></script>
</svg>

До

Ширина:  |  Высота:  |  Размер: 4.0 KiB

После

Ширина:  |  Высота:  |  Размер: 4.7 KiB

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

@ -82,6 +82,21 @@ the previous batches are not removed from the document.
if (parent.reportResults) parent.reportResults(end - start, start);
}
}
addEventListener("load", function(){ rAF(runTest); });
addEventListener("load", function() {
try {
// Outside of talos, this throws a security exception which no-op this file.
// (It's not required nor allowed for addons since Firefox 17)
// It's used inside talos from non-privileged pages (like during tscroll),
// and it works because talos disables all/most security measures.
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
} catch (e) {}
Components.utils.import("resource://gre/modules/Services.jsm");
Services.scriptloader.loadSubScript("chrome://talos-powers-content/content/TalosContentProfiler.js");
TalosContentProfiler.resume("hixie-005.xml loaded", true).then(() => {
rAF(runTest);
});
});
]]></script>
</svg>

До

Ширина:  |  Высота:  |  Размер: 4.2 KiB

После

Ширина:  |  Высота:  |  Размер: 4.8 KiB

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

@ -82,6 +82,21 @@ the previous batches are not removed from the document.
if (parent.reportResults) parent.reportResults(end - start, start);
}
}
addEventListener("load", function(){ rAF(runTest); });
addEventListener("load", function() {
try {
// Outside of talos, this throws a security exception which no-op this file.
// (It's not required nor allowed for addons since Firefox 17)
// It's used inside talos from non-privileged pages (like during tscroll),
// and it works because talos disables all/most security measures.
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
} catch (e) {}
Components.utils.import("resource://gre/modules/Services.jsm");
Services.scriptloader.loadSubScript("chrome://talos-powers-content/content/TalosContentProfiler.js");
TalosContentProfiler.resume("hixie-006.xml loaded", true).then(() => {
rAF(runTest);
});
});
]]></script>
</svg>

До

Ширина:  |  Высота:  |  Размер: 4.2 KiB

После

Ширина:  |  Высота:  |  Размер: 4.8 KiB

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

@ -274,6 +274,21 @@ contains many 'path' elements with fill and stroke.
if (parent.reportResults) parent.reportResults(end - start, start);
}
}
addEventListener("load", function(){ rAF(runTest); });
addEventListener("load", function() {
try {
// Outside of talos, this throws a security exception which no-op this file.
// (It's not required nor allowed for addons since Firefox 17)
// It's used inside talos from non-privileged pages (like during tscroll),
// and it works because talos disables all/most security measures.
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
} catch (e) {}
Components.utils.import("resource://gre/modules/Services.jsm");
Services.scriptloader.loadSubScript("chrome://talos-powers-content/content/TalosContentProfiler.js");
TalosContentProfiler.resume("hixie-007.xml loaded", true).then(() => {
rAF(runTest);
});
});
]]></script>
</svg>

До

Ширина:  |  Высота:  |  Размер: 388 KiB

После

Ширина:  |  Высота:  |  Размер: 389 KiB