#include "ProgressEvent.h"
#include "JSONUtils.h"
#include "llvm/Support/ErrorHandling.h"
#include <optional>
usingnamespacelldb_dap;
usingnamespacellvm;
const std::chrono::duration<double> kStartProgressEventReportDelay = …;
const std::chrono::duration<double> kUpdateProgressEventReportDelay = …;
ProgressEvent::ProgressEvent(uint64_t progress_id,
std::optional<StringRef> message,
uint64_t completed, uint64_t total,
const ProgressEvent *prev_event)
: … { … }
std::optional<ProgressEvent>
ProgressEvent::Create(uint64_t progress_id, std::optional<StringRef> message,
uint64_t completed, uint64_t total,
const ProgressEvent *prev_event) { … }
bool ProgressEvent::EqualsForIDE(const ProgressEvent &other) const { … }
ProgressEventType ProgressEvent::GetEventType() const { … }
StringRef ProgressEvent::GetEventName() const { … }
json::Value ProgressEvent::ToJSON() const { … }
bool ProgressEvent::Report(ProgressEventReportCallback callback) { … }
bool ProgressEvent::Reported() const { … }
ProgressEventManager::ProgressEventManager(
const ProgressEvent &start_event,
ProgressEventReportCallback report_callback)
: … { … }
bool ProgressEventManager::ReportIfNeeded() { … }
const ProgressEvent &ProgressEventManager::GetMostRecentEvent() const { … }
void ProgressEventManager::Update(uint64_t progress_id, uint64_t completed,
uint64_t total) { … }
bool ProgressEventManager::Finished() const { … }
ProgressEventReporter::ProgressEventReporter(
ProgressEventReportCallback report_callback)
: … { … }
ProgressEventReporter::~ProgressEventReporter() { … }
void ProgressEventReporter::ReportStartEvents() { … }
void ProgressEventReporter::Push(uint64_t progress_id, const char *message,
uint64_t completed, uint64_t total) { … }