Bug 709595 - Add a name for each java thread and timer to aide with debugging. r=blassey

--HG--
extra : rebase_source : 1f5472ef5301739425b162d5ce4b28a577daf0fb
This commit is contained in:
Doug Turner 2011-12-12 16:27:35 +08:00
parent 01d7e5edbc
commit 9cc75f8b7b
5 changed files with 5 additions and 4 deletions

View File

@ -165,7 +165,7 @@ public class CrashReporter extends Activity
public void run() {
sendReport(mPendingMinidumpFile, mExtrasStringMap, mPendingExtrasFile);
}
}).start();
}, "CrashReporter Thread").start();
}
public void onCloseClick(View v) { // bound via crash_reporter.xml

View File

@ -2089,7 +2089,7 @@ abstract public class GeckoApp
// we really don't care.
}
}
}).start();
}, "DNSPrefetcher Thread").start();
}
}

View File

@ -146,6 +146,7 @@ public class GeckoAppShell
new SynchronousQueue<Handler>();
public void run() {
setName("GeckoLooper Thread");
Looper.prepare();
try {
mHandlerQueue.put(new Handler());

View File

@ -1009,7 +1009,7 @@ public class GeckoInputConnection
} catch (InterruptedException e) {}
}
static private final Timer mIMETimer = new Timer();
static private final Timer mIMETimer = new Timer("GeckoInputConnection Timer");
static private final int NOTIFY_IME_RESETINPUTSTATE = 0;
static private final int NOTIFY_IME_SETOPENSTATE = 1;

View File

@ -518,7 +518,7 @@ public class PanZoomController
stopAnimationTimer();
}
mAnimationTimer = new Timer();
mAnimationTimer = new Timer("Animation Timer");
mAnimationTimer.scheduleAtFixedRate(new TimerTask() {
@Override
public void run() { mController.post(runnable); }