Bug 914348 - Name SamplerThread on linux. r=jld

--HG--
extra : rebase_source : 343dec3b5d4b8eaa4a294c54ae1f74b9e0775401
This commit is contained in:
Benoit Girard 2013-09-10 11:20:09 -04:00
parent 3a2dcdf72f
commit 7eae9ccca8

View File

@ -345,10 +345,12 @@ void Sampler::Start() {
// Sending the signal ourselves instead of relying on itimer provides
// much better accuracy.
SetActive(true);
if (pthread_create(
&signal_sender_thread_, NULL, SignalSender, NULL) == 0) {
signal_sender_launched_ = true;
}
pthread_setname_np(signal_sender_thread_, "SamplerThread");
LOG("Profiler thread started");
}