blob: 10de25c3f4746d8b2cbcc007a778ab77c817f90e [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_PERFORMANCE_LIB_PERFMON_TYPES_H_
#define SRC_PERFORMANCE_LIB_PERFMON_TYPES_H_
#include <stdint.h>
#include <string>
namespace perfmon {
enum class CollectionMode {
// Collect profile-based samples.
kSample,
// Collect simple counts of events.
kTally,
};
// TODO(dje): Move to |Reader::Status|.
enum class ReaderStatus {
kOk,
kNoMoreRecords,
kHeaderError,
kRecordError,
kIoError,
kInvalidArgs,
};
std::string ReaderStatusToString(ReaderStatus status);
} // namespace perfmon
#endif // SRC_PERFORMANCE_LIB_PERFMON_TYPES_H_