blob: 41481541d33748258d974fba8d513e957936fab4 [file] [log] [blame]
// Copyright 2020 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_ZIRCON_BIN_HWSTRESS_CPU_WORKLOADS_H_
#define SRC_ZIRCON_BIN_HWSTRESS_CPU_WORKLOADS_H_
#include <string>
#include <utility>
#include <vector>
#include "cpu_stressor.h"
namespace hwstress {
// A CPU stress workload.
struct CpuWorkload {
std::string name;
std::function<void(WorkIndicator)> work;
};
// Return a list of available workloads.
std::vector<CpuWorkload> GetCpuWorkloads();
} // namespace hwstress
#endif // SRC_ZIRCON_BIN_HWSTRESS_CPU_WORKLOADS_H_