Bug 1636398 - Tweak default profiler buffer size in tests - r=canaltinova

Also removed explicit size in test_feature_nativeallocations, as we want a reasonably-big buffer in this test.

Other tests with small buffer sizes are fine, since the profiler imposes a minimum size that should be big enough to capture at least 8 large stacks (see bug 1571171).

Differential Revision: https://phabricator.services.mozilla.com/D74588
This commit is contained in:
Gerald Squelart 2020-05-11 13:09:50 +00:00
Родитель a33d75ae27
Коммит bc2c84ac2b
2 изменённых файлов: 1 добавлений и 2 удалений

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

@ -11,7 +11,7 @@
var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const defaultSettings = {
entries: 1000000, // 9MB
entries: 8 * 1024 * 1024, // 8M entries = 64MB
interval: 1, // ms
features: ["threads"],
threads: ["GeckoMain"],

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

@ -28,7 +28,6 @@ add_task(async () => {
{
info("Start the profiler.");
startProfiler({
entries: 1e6,
// Only instrument the main thread.
threads: ["GeckoMain"],
features: ["threads", "leaf", "nativeallocations"],