Commit 0dac9bfd authored by Lakshman Annadorai's avatar Lakshman Annadorai Committed by Commit Bot

Record thread types of TaskScheduler* and CompositorTileW* threads.

Internal bug b/130928904.

Record thread types of TaskScheduler* and CompositorTileW* threads using the newly added SCHEDULER_WORKER_THREAD and COMPOSITOR_TILE_WORKER_THREAD thread type enums, respectively.

Change-Id: Id363a580a844d08a269b148967072aa9b3aaa268
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1604208
Commit-Queue: Lakshman Annadorai <lakshmana@chromium.org>
Auto-Submit: Lakshman Annadorai <lakshmana@chromium.org>
Reviewed-by: default avatarGabriel Marin <gmx@chromium.org>
Reviewed-by: default avatarMike Wittman <wittman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#660934}
parent 25ba7db5
......@@ -170,6 +170,12 @@ std::map<uint32_t, Thread> ProcessTypeCollector::ParseThreadTypes(
base::StartsWith(cmd, "VizCompositorTh",
base::CompareCase::SENSITIVE)) {
thread = Thread::COMPOSITOR_THREAD;
} else if (base::StartsWith(cmd, "TaskScheduler",
base::CompareCase::SENSITIVE)) {
thread = Thread::SCHEDULER_WORKER_THREAD;
} else if (base::StartsWith(cmd, "CompositorTileW",
base::CompareCase::SENSITIVE)) {
thread = Thread::COMPOSITOR_TILE_WORKER_THREAD;
}
thread_types.emplace(tid, thread);
......
......@@ -62,6 +62,8 @@ void GetExampleThreadTypeDataset(std::string* ps_output,
10000 12107 Chrome_ChildIOT /opt/google/chrome/chrome --type=gpu-process
11000 12207 VizCompositorTh /opt/google/chrome/chrome --type=gpu-process
12103 12112 Compositor /opt/google/chrome/chrome --type=gpu-process
15000 15112 TaskSchedulerFo /opt/google/chrome/chrome --type=renderer
16000 16112 CompositorTileW /opt/google/chrome/chrome --type=renderer
12345 12456 OtherThread /opt/google/chrome/chrome --ppapi-flash-path=...
13456 13566 Compositor non_chrome_exec --some-flag=foo)text";
thread_types->insert(
......@@ -74,6 +76,10 @@ void GetExampleThreadTypeDataset(std::string* ps_output,
12207, Thread::COMPOSITOR_THREAD));
thread_types->insert(google::protobuf::MapPair<uint32_t, Thread>(
12112, Thread::COMPOSITOR_THREAD));
thread_types->insert(google::protobuf::MapPair<uint32_t, Thread>(
15112, Thread::SCHEDULER_WORKER_THREAD));
thread_types->insert(google::protobuf::MapPair<uint32_t, Thread>(
16112, Thread::COMPOSITOR_TILE_WORKER_THREAD));
thread_types->insert(
google::protobuf::MapPair<uint32_t, Thread>(12456, Thread::OTHER_THREAD));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment