Files
rk35xx-android14/external/cronet/base/process/process_metrics_iocounters.h
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

38 lines
922 B
C++

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This is a separate file so that users of process metrics don't need to
// include windows.h unless they need IoCounters.
#ifndef BASE_PROCESS_PROCESS_METRICS_IOCOUNTERS_H_
#define BASE_PROCESS_PROCESS_METRICS_IOCOUNTERS_H_
#include <stdint.h>
#include "base/process/process_metrics.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#endif
namespace base {
#if BUILDFLAG(IS_WIN)
struct IoCounters : public IO_COUNTERS {};
#elif BUILDFLAG(IS_POSIX)
struct IoCounters {
uint64_t ReadOperationCount;
uint64_t WriteOperationCount;
uint64_t OtherOperationCount;
uint64_t ReadTransferCount;
uint64_t WriteTransferCount;
uint64_t OtherTransferCount;
};
#endif
} // namespace base
#endif // BASE_PROCESS_PROCESS_METRICS_IOCOUNTERS_H_