blob: d62ea816f9c46c00b7eb4013947566822cde9fd6 [file] [log] [blame]
// Copyright 2016 The Chromium OS 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 DEBUGD_SRC_OOM_ADJ_TOOL_H_
#define DEBUGD_SRC_OOM_ADJ_TOOL_H_
#include <stdint.h>
#include <sys/types.h>
#include <map>
#include <string>
#include <base/macros.h>
#include "debugd/src/subprocess_tool.h"
namespace debugd {
class OomAdjTool : public SubprocessTool {
public:
OomAdjTool() = default;
~OomAdjTool() override = default;
std::string Set(const std::map<pid_t, int32_t>& scores);
private:
DISALLOW_COPY_AND_ASSIGN(OomAdjTool);
};
} // namespace debugd
#endif // DEBUGD_SRC_OOM_ADJ_TOOL_H_