1 // Copyright 2018 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_SCHEDULING_METRICS_THREAD_TYPE_H_
6 #define COMPONENTS_SCHEDULING_METRICS_THREAD_TYPE_H_
8 namespace scheduling_metrics {
10 // The list of all threads in the Chrome we support scheduling metrics for.
11 // This enum is used as a key in histograms and should not be renumbered.
12 // Please update SchedulerThreadType enum in tools/metrics/histograms/enums.xml
13 // when adding new values.
14 enum class ThreadType {
17 kRendererMainThread = 2,
18 kRendererCompositorThread = 3,
19 kRendererDedicatedWorkerThread = 4,
20 kRendererServiceWorkerThread = 5,
21 // Blink has ~10 other named threads, however they run just a few tasks.
22 // Aggregate them into a single item for clarity and split out if necessary.
23 kRendererOtherBlinkThread = 6,
28 } // namespace scheduling_metrics
30 #endif // COMPONENTS_SCHEDULING_METRICS_THREAD_TYPE_H_