blob: 4cc7c0b21f0dd1da9cc38a17ca67c68ee57923fa [file] [log] [blame]
// Copyright 2019 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_BIN_SYSTEM_MONITOR_HARVESTER_GATHER_MEMORY_H_
#define GARNET_BIN_SYSTEM_MONITOR_HARVESTER_GATHER_MEMORY_H_
#include "gather_category.h"
namespace harvester {
class SampleBundle;
void AddGlobalMemorySamples(SampleBundle* samples, zx_handle_t root_resource);
// Gather high level memory information from the kernel.
class GatherMemory : public GatherCategory {
public:
GatherMemory(zx_handle_t root_resource,
harvester::DockyardProxy* dockyard_proxy)
: GatherCategory(root_resource, dockyard_proxy) {}
// GatherCategory.
void GatherDeviceProperties() override;
void Gather() override;
};
} // namespace harvester
#endif // GARNET_BIN_SYSTEM_MONITOR_HARVESTER_GATHER_MEMORY_H_