mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1245886 - Manually stop the profiler module at the end of all tests. r=me, a=test-only
This commit is contained in:
parent
f4ec08b30e
commit
66f449dbcb
@ -70,9 +70,17 @@ const key = (id, win = window) => {
|
||||
registerCleanupFunction(() => {
|
||||
info(`finish() was called, cleaning up...`);
|
||||
DevToolsUtils.testing = false;
|
||||
|
||||
PrefUtils.rollbackPrefsToDefault();
|
||||
stopObservingPrefs();
|
||||
|
||||
// Manually stop the profiler module at the end of all tests, to hopefully
|
||||
// avoid at least some leaks on OSX. Theoretically the module should never
|
||||
// be active at this point. We shouldn't have to do this, but rather
|
||||
// find and fix the leak in the module itself. Bug 1257439.
|
||||
let nsIProfilerModule = Cc["@mozilla.org/tools/profiler;1"].getService(Ci.nsIProfiler);
|
||||
nsIProfilerModule.StopProfiler();
|
||||
|
||||
// Forces GC, CC and shrinking GC to get rid of disconnected docshells
|
||||
// and windows.
|
||||
Cu.forceGC();
|
||||
|
Loading…
Reference in New Issue
Block a user