Created
October 28, 2024 17:13
-
-
Save bgrins/d235a678b575a0169f9ff70a1683a0ef to your computer and use it in GitHub Desktop.
Revisions
-
bgrins created this gist
Oct 28, 2024 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ (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); })();