Created
October 28, 2024 17:13
-
-
Save bgrins/d235a678b575a0169f9ff70a1683a0ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
const settings = { | |
features: ['js', 'stackwalk', 'threads', 'leaf', 'tracer'], | |
threads: ["GeckoMain"], | |
}; | |
await Services.profiler.StartProfiler( | |
settings.entries, | |
settings.interval, | |
settings.features, | |
settings.threads | |
); | |
await new Promise(r => setTimeout(r, 3000)); | |
let data = await Services.profiler.getProfileDataAsync(); | |
Services.profiler.StopProfiler(); | |
console.log(data); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment