#include "util/linux/proc_stat_reader.h"
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <iterator>
#include "base/files/file_path.h"
#include "base/logging.h"
#include "util/file/file_io.h"
#include "util/misc/lexing.h"
#include "util/misc/time.h"
namespace crashpad {
namespace {
long GetClockTicksPerSecond() { … }
}
ProcStatReader::ProcStatReader()
: … { … }
ProcStatReader::~ProcStatReader() { … }
bool ProcStatReader::Initialize(PtraceConnection* connection, pid_t tid) { … }
bool ProcStatReader::UserCPUTime(timeval* user_time) const { … }
bool ProcStatReader::SystemCPUTime(timeval* system_time) const { … }
bool ProcStatReader::StartTime(const timeval& boot_time,
timeval* start_time) const { … }
bool ProcStatReader::FindColumn(int col_index, const char** column) const { … }
bool ProcStatReader::ReadTimeAtIndex(int index, timeval* time_val) const { … }
}