// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_COMMON_UKM_TASK_SAMPLER_H_ #define THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_COMMON_UKM_TASK_SAMPLER_H_ #include "base/gtest_prod_util.h" #include "base/rand_util.h" #include "third_party/blink/renderer/platform/platform_export.h" namespace blink { namespace scheduler { // Helper to determine whether a task should be recorded for UKM. This class // tries to maximize the probability of recording an UKM sample for tasks that // are also recording their thread time. class PLATFORM_EXPORT UkmTaskSampler { … }; } // namespace scheduler } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_SCHEDULER_COMMON_UKM_TASK_SAMPLER_H_