blob: bbc5e0b1a2777532f9dc269c306f5f52153f34d6 [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.
#include "src/developer/forensics/crash_reports/info/queue_info.h"
#include <lib/syslog/cpp/macros.h>
namespace forensics {
namespace crash_reports {
QueueInfo::QueueInfo(std::shared_ptr<InfoContext> context) : context_(context) {
FX_CHECK(context_);
}
void QueueInfo::LogReport(const std::string& program_name, const std::string& local_report_id) {
context_->InspectManager().AddReport(program_name, local_report_id);
}
void QueueInfo::SetSize(const uint64_t size) { context_->InspectManager().SetQueueSize(size); }
} // namespace crash_reports
} // namespace forensics