Bug 1323100 - Stop double-registering the MediaStreamGraph thread with the profiler. r=froydnj

MozReview-Commit-ID: 7WxNLZpBWL4

--HG--
extra : rebase_source : ce8fe0481c8e3c3d3efd3d1c15480490943ee202
This commit is contained in:
Markus Stange 2016-12-21 23:06:45 +01:00
Родитель dee0c78211
Коммит 4e6ca03c5d
1 изменённых файлов: 0 добавлений и 17 удалений

Просмотреть файл

@ -39,19 +39,6 @@ namespace mozilla {
StaticRefPtr<nsIThreadPool> AsyncCubebTask::sThreadPool;
struct AutoProfilerUnregisterThread
{
// The empty ctor is used to silence a pre-4.8.0 GCC unused variable warning.
AutoProfilerUnregisterThread()
{
}
~AutoProfilerUnregisterThread()
{
profiler_unregister_thread();
}
};
GraphDriver::GraphDriver(MediaStreamGraphImpl* aGraphImpl)
: mIterationStart(0),
mIterationEnd(0),
@ -196,9 +183,7 @@ public:
}
NS_IMETHOD Run() override
{
char aLocal;
STREAM_LOG(LogLevel::Debug, ("Starting system thread"));
profiler_register_thread("MediaStreamGraph", &aLocal);
LIFECYCLE_LOG("Starting a new system driver for graph %p\n",
mDriver->mGraphImpl);
@ -316,8 +301,6 @@ SystemClockDriver::IsFallback()
void
ThreadedDriver::RunThread()
{
AutoProfilerUnregisterThread autoUnregister;
bool stillProcessing = true;
while (stillProcessing) {
mIterationStart = IterationEnd();