blob: 4de1a157bf564c370756c66e265a9669371cfd3e [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_DEVELOPER_SYSTEM_MONITOR_BIN_HARVESTER_GATHER_CHANNELS_H_
#define SRC_DEVELOPER_SYSTEM_MONITOR_BIN_HARVESTER_GATHER_CHANNELS_H_
#include "gather_category.h"
#include "os.h"
#include "task_tree.h"
namespace harvester {
class SampleBundle;
// Gather Samples for jobs, processes, and threads.
class GatherChannels : public GatherCategory {
public:
GatherChannels(zx_handle_t info_resource, DockyardProxy* dockyard_proxy,
TaskTree& task_tree, OS* os)
: GatherCategory(info_resource, dockyard_proxy),
task_tree_(task_tree),
os_(os) {}
// GatherCategory.
void Gather() override;
private:
TaskTree& task_tree_;
OS* os_;
};
} // namespace harvester
#endif // SRC_DEVELOPER_SYSTEM_MONITOR_BIN_HARVESTER_GATHER_CHANNELS_H_