In https://github.com/electron/electron/commit/7613afe6d70eadd7446db921918dca086cd324c0 I had to disable the check that validates that the constructor is called on the right thread, because the check fails when the tests run.

Let's make sure the check doesn't fail and re-enable it. Or refactor so that the thread affinity is not required and remove the check.
atom/browser/api/atom_api_app.cc
static_cast<double>(
            process_metric.second->metrics->GetPeakWorkingSetSize() >> 10));
    size_t private_bytes, shared_bytes;
    if (process_metric.second->metrics->GetMemoryBytes(&private_bytes,
                                                       &shared_bytes)) {
      memory_dict.Set("privateBytes", static_cast<double>(private_bytes >> 10));
      memory_dict.Set("sharedBytes", static_cast<double>(shared_bytes >> 10));
    }
    pid_dict.Set("memory", memory_dict);
    cpu_dict.Set("percentCPUUsage",
        process_metric.second->metrics->GetPlatformIndependentCPUUsage()
        / processor_count);
#if !defined(OS_WIN)
    cpu_dict.Set("idleWakeupsPerSecond",
        process_metric.second->metrics->GetIdleWakeupsPerSecond());
#else
    
    
    
    cpu_dict.Set("idleWakeupsPerSecond", 0);
#endif
    pid_dict.Set("cpu", cpu_dict);
    pid_dict.Set("pid", process_metric.second->pid);
    pid_dict.Set("type",
        content::GetProcessTypeNameInEnglish(process_metric.second->type));
    result.push_back(pid_dict);
  }
  return result;
}
v8::Local<v8::Value> App::GetGPUFeatureStatus(v8::Isolate* isolate) {