Skip to content

Instantly share code, notes, and snippets.

@Constellation
Created January 14, 2017 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Constellation/5499e6a8f1d1e5e995be814a64b439de to your computer and use it in GitHub Desktop.
Save Constellation/5499e6a8f1d1e5e995be814a64b439de to your computer and use it in GitHub Desktop.
ThreadNames
Source/JavaScriptCore/API/tests/CompareAndSwapTest.cpp: threadIDs[i] = createThread(ThreadName { "setBitThreadFunc", "setBitThread" }, threadFunc);
Source/JavaScriptCore/b3/air/testair.cpp: ThreadName { "testb3 thread" },
Source/JavaScriptCore/b3/testb3.cpp: ThreadName { "testb3 thread" },
Source/JavaScriptCore/bytecode/SuperSampler.cpp: ThreadName { "JSC Super Sampler", "SuperSampler" },
Source/JavaScriptCore/dfg/DFGWorklist.cpp: theGlobalDFGWorklist = &Worklist::create(ThreadName { "DFG Worklist" }, Options::numberOfDFGCompilerThreads(), Options::priorityDeltaOfDFGCompilerThreads()).leakRef();
Source/JavaScriptCore/dfg/DFGWorklist.cpp: theGlobalFTLWorklist = &Worklist::create(ThreadName { "FTL Worklist" }, Options::numberOfFTLCompilerThreads(), Options::priorityDeltaOfFTLCompilerThreads()).leakRef();
Source/JavaScriptCore/disassembler/Disassembler.cpp: createThread(ThreadName { "Asynchronous Disassembler", "AsyncDisasm" }, [&] () { run(); });
Source/JavaScriptCore/heap/Heap.cpp: : AutomaticThread(locker, heap.m_threadLock, heap.m_threadCondition, ThreadName { "Heap Collector" })
Source/JavaScriptCore/heap/Heap.cpp: ThreadName { "JSC DEBUG Continuous GC", "ContinuousGC" },
Source/JavaScriptCore/heap/HeapHelperPool.cpp: helperPool = new ParallelHelperPool(ThreadName { "Heap Helper" });
Source/JavaScriptCore/jit/ICStats.cpp: ThreadName { "JSC ICStats" },
Source/JavaScriptCore/jit/JITWorklist.cpp: : AutomaticThread(locker, worklist.m_lock, worklist.m_condition, ThreadName { "Baseline JIT Compiler Worker", "JITCompiler" })
Source/JavaScriptCore/jsc.cpp: createThread(timeoutThreadMain, 0, ThreadName { "jsc Timeout Thread", "TimeoutThread" });
Source/JavaScriptCore/runtime/SamplingProfiler.cpp: m_threadIdentifier = createThread(ThreadName { "jsc.sampling-profiler.thread", "Sampling" }, [profiler] {
Source/JavaScriptCore/runtime/Watchdog.cpp: , m_timerQueue(WorkQueue::create(ThreadName { "jsc.watchdog.queue", "Watchdog" }, WorkQueue::Type::Serial, WorkQueue::QOS::Utility))
Source/JavaScriptCore/wasm/WasmPlan.cpp: threads.uncheckedAppend(createThread(ThreadName { "jsc.wasm-b3-compilation.thread", "WasmB3Compiler" }, doWork));
Source/WTF/ChangeLog: ThreadName { "Asynchronous Disassembler", "AsyncDisasm" },
Source/WTF/benchmarks/ConditionSpeedTest.cpp: ThreadName { "Consumer thread" },
Source/WTF/benchmarks/ConditionSpeedTest.cpp: ThreadName { "Producer Thread" },
Source/WTF/benchmarks/LockFairnessTest.cpp: ThreadName { "Benchmark thread", "BenchmarkRunner" },
Source/WTF/benchmarks/LockSpeedTest.cpp: ThreadName { "Benchmark thread", "BenchmarkRunner" },
Source/WTF/wtf/ParallelJobsGeneric.cpp: m_threadID = createThread(&ParallelEnvironment::ThreadPrivate::workerThread, this, ThreadName { "Parallel worker" });
Source/WTF/wtf/WorkQueue.cpp: m_workers.append(createThread(ThreadName { "ThreadPool Worker", "ConcurrentApply" }, [this] {
Source/WTF/wtf/win/MainThreadWin.cpp: initializeCurrentThreadInternal(ThreadName { "Main Thread" });
Source/WebCore/Modules/indexeddb/server/IDBServer.cpp: m_threadID = createThread(IDBServer::databaseThreadEntry, this, ThreadName { "IndexedDatabase Server", "IDBServer" });
Source/WebCore/Modules/indexeddb/server/IDBServer.cpp: m_threadID = createThread(IDBServer::databaseThreadEntry, this, ThreadName { "IndexedDatabase Server", "IDBServer" });
Source/WebCore/Modules/webaudio/AsyncAudioDecoder.cpp: m_threadID = createThread(AsyncAudioDecoder::threadEntry, this, ThreadName { "Audio Decoder" });
Source/WebCore/Modules/webaudio/OfflineAudioDestinationNode.cpp: m_renderThread = createThread(OfflineAudioDestinationNode::offlineRenderEntry, this, ThreadName { "offline renderer", "OfflineRenderer" });
Source/WebCore/Modules/webdatabase/DatabaseThread.cpp: m_threadID = createThread(DatabaseThread::databaseThreadStart, this, ThreadName { "WebCore: Database", "WebDB" });
Source/WebCore/bindings/js/GCController.cpp: ThreadIdentifier threadID = createThread(collect, 0, ThreadName { "WebCore: GC Controller", "GCController" });
Source/WebCore/crypto/SubtleCrypto.cpp: , m_workQueue(WorkQueue::create(ThreadName { "com.apple.WebKit.CryptoQueue", "CryptoQueue" }))
Source/WebCore/fileapi/AsyncFileStream.cpp: createThread(ThreadName { "WebCore: AsyncFileStream", "AsyncFileStream" }, [] {
Source/WebCore/loader/icon/IconDatabase.cpp: m_syncThread = createThread(IconDatabase::iconDatabaseSyncThreadStart, this, ThreadName { "WebCore: IconDatabase", "IconDB" });
Source/WebCore/page/ResourceUsageThread.cpp: m_threadIdentifier = createThread(threadCallback, this, ThreadName { "WebCore: ResourceUsage", "ResourceUsage" });
Source/WebCore/page/scrolling/ScrollingThread.cpp: m_threadIdentifier = createThread(threadCallback, this, ThreadName { "WebCore: Scrolling", "Scrolling" });
Source/WebCore/platform/audio/HRTFDatabaseLoader.cpp: m_databaseLoaderThread = createThread(databaseLoaderEntry, this, ThreadName { "HRTF database loader", "HRTFDBLoader" });
Source/WebCore/platform/audio/ReverbConvolver.cpp: m_backgroundThread = createThread(WebCore::backgroundThreadEntry, this, ThreadName { "convolution background thread", "Convolution" });
Source/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp: auto threadID = createThread(ThreadName { "AudioFileReader" }, [&returnValue, filePath, mixToMono, sampleRate] {
Source/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp: auto threadID = createThread(ThreadName { "AudioFileReader" }, [&returnValue, data, dataSize, mixToMono, sampleRate] {
Source/WebCore/platform/graphics/ImageFrameCache.cpp: m_decodingQueue = WorkQueue::create(ThreadName { "ImageDecoder" }, WorkQueue::Type::Serial, WorkQueue::QOS::UserInteractive);
Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: m_thread = createThread(ThreadName { "ResourceHandleStreamingClient", "RStreaming" }, [this, request = WTFMove(request)] {
Source/WebCore/platform/linux/MemoryPressureHandlerLinux.cpp: m_threadID = createThread(ThreadName { "MemoryPressureHandler", "MemPressHandler" }, [this] { readAndNotify(); }
Source/WebCore/platform/network/BlobRegistryImpl.cpp: static NeverDestroyed<Ref<WorkQueue>> queue(WorkQueue::create(ThreadName { "org.webkit.BlobUtility", "BlobUtility" }, WorkQueue::Type::Serial, WorkQueue::QOS::Background));
Source/WebCore/platform/network/DataURLDecoder.cpp: static auto& queue = WorkQueue::create(ThreadName { "org.webkit.DataURLDecoder", "DataURLDecoder" }).leakRef();
Source/WebCore/platform/network/cf/LoaderRunLoopCF.cpp: createThread(runLoaderThread, 0, ThreadName { "WebCore: CFNetwork Loader", "CFNetworkLoader" });
Source/WebCore/platform/network/curl/CurlDownload.cpp: m_threadId = createThread(downloadThread, this, ThreadName { "downloadThread" });
Source/WebCore/platform/network/curl/SocketStreamHandleImplCurl.cpp: m_workerThread = createThread(ThreadName { "WebSocket thread", "WebSocket" }, [this] {
Source/WebCore/workers/WorkerThread.cpp: m_threadID = createThread(WorkerThread::workerThreadStart, this, ThreadName { "WebCore: WebWorker", "WebWorker" });
Source/WebKit/Storage/StorageThread.cpp: m_threadID = createThread(StorageThread::threadEntryPointCallback, this, ThreadName { "WebCore: LocalStorage", "LocalStorage" });
Source/WebKit2/DatabaseProcess/DatabaseProcess.cpp: : m_queue(WorkQueue::create(ThreadName { "com.apple.WebKit.DatabaseProcess", "DBProcess" }))
Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp: WorkQueue::create(ThreadName { "com.apple.WebKit.Cache.delete", "CacheDeleter" })->dispatch([path = dumpFilePath().isolatedCopy()] {
Source/WebKit2/NetworkProcess/cache/NetworkCacheIOChannelSoup.cpp: detachThread(createThread(ThreadName { "IOChannel::readSync", "IOCReadSync" }, [channel, size, queue, completionHandler] {
Source/WebKit2/NetworkProcess/cache/NetworkCacheStatistics.cpp: : m_serialBackgroundIOQueue(WorkQueue::create(ThreadName { "com.apple.WebKit.Cache.Statistics.Background", "CacheStatsBG" }, WorkQueue::Type::Serial, WorkQueue::QOS::Background))
Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.cpp: , m_ioQueue(WorkQueue::create(ThreadName { "com.apple.WebKit.Cache.Storage", "CacheStorageFG" }, WorkQueue::Type::Concurrent))
Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.cpp: , m_backgroundIOQueue(WorkQueue::create(ThreadName { "com.apple.WebKit.Cache.Storage.background", "CacheStorageBG" }, WorkQueue::Type::Concurrent, WorkQueue::QOS::Background))
Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.cpp: , m_serialBackgroundIOQueue(WorkQueue::create(ThreadName { "com.apple.WebKit.Cache.Storage.serialBackground", "CacheStorageSBG" }, WorkQueue::Type::Serial, WorkQueue::QOS::Background))
Source/WebKit2/Platform/IPC/Connection.cpp: , m_connectionQueue(WorkQueue::create(ThreadName { "com.apple.IPC.ReceiveQueue", "IPCReceiveQueue" }))
Source/WebKit2/Platform/IPC/Connection.cpp: m_incomingSyncMessageCallbackQueue = WorkQueue::create(ThreadName { "com.apple.WebKit.IPC.IncomingSyncMessageCallbackQueue", "ISyncMsgCBQueue" });
Source/WebKit2/Shared/ChildProcess.cpp: WorkQueue::create(ThreadName { "com.apple.WebKit.ChildProcess.WatchDogQueue", "ChildWdogQueue" })->dispatchAfter(watchdogDelay, [] {
Source/WebKit2/Shared/CoordinatedGraphics/threadedcompositor/CompositingRunLoop.cpp: addResult.iterator->value = WorkQueue::create(ThreadName { "org.webkit.ThreadedCompositorWorkQueue", "ThreadedComp" });
Source/WebKit2/Shared/mac/SecItemShim.cpp: workQueue = &WorkQueue::create(ThreadName { "com.apple.WebKit.SecItemShim", "SecItemShim" }).leakRef();
Source/WebKit2/UIProcess/API/APIUserContentExtensionStore.cpp: , m_compileQueue(WorkQueue::create(ThreadName { "UserContentExtensionStore Compile Queue", "UCExStCompQueue" }, WorkQueue::Type::Concurrent))
Source/WebKit2/UIProcess/API/APIUserContentExtensionStore.cpp: , m_readQueue(WorkQueue::create(ThreadName { "UserContentExtensionStore Read Queue", "UCExStRdQueue" }))
Source/WebKit2/UIProcess/API/APIUserContentExtensionStore.cpp: , m_removeQueue(WorkQueue::create(ThreadName { "UserContentExtensionStore Remove Queue", "UCExStRmQueue" }))
Source/WebKit2/UIProcess/Storage/StorageManager.cpp: : m_queue(WorkQueue::create(ThreadName { "com.apple.WebKit.StorageManager", "StorageMgr" }))
Source/WebKit2/UIProcess/WebResourceLoadStatisticsStore.cpp: , m_statisticsQueue(WorkQueue::create(ThreadName { "WebResourceLoadStatisticsStore Process Data Queue", "WebRsStatQueue" }))
Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp: , m_queue(WorkQueue::create(ThreadName { "com.apple.WebKit.WebsiteDataStore", "WebDataStore" }))
Source/WebKit2/UIProcess/WebsiteData/WebsiteDataStore.cpp: , m_queue(WorkQueue::create(ThreadName { "com.apple.WebKit.WebsiteDataStore", "WebDataStore" }))
Source/WebKit2/UIProcess/linux/MemoryPressureMonitor.cpp: ThreadIdentifier threadIdentifier = createThread(ThreadName { "MemoryPressureMonitor", "MemPressMonitor" }, [this] {
Source/WebKit2/UIProcess/mac/SecItemShimProxy.cpp: : m_queue(WorkQueue::create(ThreadName { "com.apple.WebKit.SecItemShimProxy", "SecItemShimP" }))
Source/WebKit2/WebProcess/Plugins/PluginProcessConnectionManager.cpp: : m_queue(WorkQueue::create(ThreadName { "com.apple.WebKit.PluginProcessConnectionManager", "PluginConnMgr" }))
Source/WebKit2/WebProcess/WebPage/EventDispatcher.cpp: : m_queue(WorkQueue::create(ThreadName { "com.apple.WebKit.EventDispatcher", "EventDispatch" }, WorkQueue::Type::Serial, WorkQueue::QOS::UserInteractive))
Source/WebKit2/WebProcess/WebPage/ViewUpdateDispatcher.cpp: : m_queue(WorkQueue::create(ThreadName { "com.apple.WebKit.ViewUpdateDispatcher", "VUpdateDispatch" }))
Tools/DumpRenderTree/JavaScriptThreading.cpp: javaScriptThreads().add(createThread(&runJavaScriptThread, 0, ThreadName { "" }));
Tools/DumpRenderTree/JavaScriptThreading.cpp: javaScriptThreads().add(createThread(&runJavaScriptThread, 0, ThreadName { "" }));
Tools/DumpRenderTree/mac/DumpRenderTree.mm: createThread(runThread, 0, ThreadName { "DumpRenderTree: test", "DRTTest" });
Tools/TestWebKitAPI/Tests/WTF/Condition.cpp: ThreadName { "Consumer thread" },
Tools/TestWebKitAPI/Tests/WTF/Condition.cpp: ThreadName { "Producer Thread" },
Tools/TestWebKitAPI/Tests/WTF/Lock.cpp: ThreadName { "Lock test thread", "LockTester" },
Tools/TestWebKitAPI/Tests/WTF/ParkingLot.cpp: ThreadName { "Parking Test thread", "ParkingTester" },
Tools/TestWebKitAPI/Tests/WTF/SynchronizedFixedQueue.cpp: m_produceQueue = WorkQueue::create(ThreadName { "org.webkit.Produce", "Producer" });
Tools/TestWebKitAPI/Tests/WTF/SynchronizedFixedQueue.cpp: m_consumeQueue = WorkQueue::create(ThreadName { "org.webkit.Consume", "Consumer" });
Tools/TestWebKitAPI/Tests/WTF/WorkQueue.cpp: auto queue = WorkQueue::create(ThreadName { "com.apple.WebKit.Test.simple", "SimpleTest" });
Tools/TestWebKitAPI/Tests/WTF/WorkQueue.cpp: auto queue1 = WorkQueue::create(ThreadName { "com.apple.WebKit.Test.twoQueues1", "TwoQueues1Test" });
Tools/TestWebKitAPI/Tests/WTF/WorkQueue.cpp: auto queue2 = WorkQueue::create(ThreadName { "com.apple.WebKit.Test.twoQueues2", "TwoQueues2Test" });
Tools/TestWebKitAPI/Tests/WTF/WorkQueue.cpp: auto queue = WorkQueue::create(ThreadName { "com.apple.WebKit.Test.dispatchAfter", "DispatchAfter" });
Tools/TestWebKitAPI/Tests/WTF/WorkQueue.cpp: auto queue = WorkQueue::create(ThreadName { "com.apple.WebKit.Test.destroyOnSelf", "DestroyOnSelf" });
Tools/TestWebKitAPI/Tests/WTF/glib/WorkQueueGLib.cpp: auto queue = WorkQueue::create(ThreadName { "com.apple.WebKit.Test.AsyncIO", "AsyncIOTest" });
Tools/TestWebKitAPI/gtk/WebKit2Gtk/WebKitTestServer.cpp: m_queue = WorkQueue::create(ThreadName { "WebKitTestServer", "TestServer" });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment