// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40285824): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif #ifndef COMPONENTS_SYSTEM_CPU_CORE_TIMES_H_ #define COMPONENTS_SYSTEM_CPU_CORE_TIMES_H_ #include <stdint.h> #include <initializer_list> #include "base/gtest_prod_util.h" namespace system_cpu { // CPU core utilization statistics. // // Linux: // Quantities are expressed in "user hertz", which is a Linux kernel // configuration knob (USER_HZ). Typical values range between 1/100 seconds // and 1/1000 seconds. The denominator can be obtained from // sysconf(_SC_CLK_TCK). // // Mac: // Quantities are expressed in "CPU Ticks", which is an arbitrary unit of time // recording how many intervals of time elapsed, typically 1/100 of a second. class CoreTimes { … }; } // namespace system_cpu #endif // COMPONENTS_SYSTEM_CPU_CORE_TIMES_H_