const entries = 10000; const interval = 1; const threads = ["GeckoMain"]; const features = ["nostacksampling"];
await Services.profiler.StartProfiler(entries, interval, features, threads); // We need to pause the profiler here, otherwise we get crashes. // This seems to be a combination of json streaming + markers from Rust. // See Bug 1920704 for more details.
await Services.profiler.Pause(); const profileData = await Services.profiler.getProfileDataAsync();
await Services.profiler.StopProfiler(); const { markers, stringTable } = profileData.threads[0]; const stringIndexForLogMessages = stringTable.indexOf("LogMessages"); Assert.greaterOrEqual(
stringIndexForLogMessages,
0, "A string index for the string LogMessages have been found."
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.