зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a33d75ae27
Коммит
bc2c84ac2b
|
@ -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"],
|
||||
|
|
Загрузка…
Ссылка в новой задаче