Bug 1688669 - Do not sample stacks in marker tests r=canaltinova

Differential Revision: https://phabricator.services.mozilla.com/D102937
This commit is contained in:
Julien Wajsberg 2021-02-15 16:01:14 +00:00
parent 02101824c8
commit 129f3bec94
2 changed files with 5 additions and 1 deletions

View File

@ -40,6 +40,10 @@ function startProfiler(callersSettings) {
);
}
function startProfilerForMarkerTests() {
startProfiler({ features: ["threads", "nostacksampling"] });
}
/**
* This is a helper function be able to run `await wait(500)`. Unfortunately
* this is needed as the act of collecting functions relies on the periodic

View File

@ -85,7 +85,7 @@ add_task(async () => {
return;
}
startProfiler();
startProfilerForMarkerTests();
startTime = Cu.now();
while (Cu.now() < startTime + 1) {
// Busy wait for 1ms to ensure the intentionally set start time of markers