blob: add57daa4b75237ce0847de865c855f95042cd44 [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 GARNET_LIB_PERFMON_TYPES_H_
#define GARNET_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 // GARNET_LIB_PERFMON_TYPES_H_