[M73 Dev][EFL] Disable VizDisplayCompositor for EFL port
[platform/framework/web/chromium-efl.git] / components / scheduling_metrics / thread_type.h
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.
4
5 #ifndef COMPONENTS_SCHEDULING_METRICS_THREAD_TYPE_H_
6 #define COMPONENTS_SCHEDULING_METRICS_THREAD_TYPE_H_
7
8 namespace scheduling_metrics {
9
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 {
15   kBrowserUIThread = 0,
16   kBrowserIOThread = 1,
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,
24
25   kCount = 7,
26 };
27
28 }  // namespace scheduling_metrics
29
30 #endif  // COMPONENTS_SCHEDULING_METRICS_THREAD_TYPE_H_