#include "lldb/Core/Progress.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Utility/StreamString.h"
#include <cstdint>
#include <mutex>
#include <optional>
usingnamespacelldb;
usingnamespacelldb_private;
std::atomic<uint64_t> Progress::g_id(0);
Progress::Progress(std::string title, std::string details,
std::optional<uint64_t> total,
lldb_private::Debugger *debugger)
: … { … }
Progress::~Progress() { … }
void Progress::Increment(uint64_t amount,
std::optional<std::string> updated_detail) { … }
void Progress::ReportProgress() { … }
ProgressManager::ProgressManager()
: … { … }
ProgressManager::~ProgressManager() { … }
void ProgressManager::Initialize() { … }
void ProgressManager::Terminate() { … }
bool ProgressManager::Enabled() { … }
ProgressManager &ProgressManager::Instance() { … }
std::optional<ProgressManager> &ProgressManager::InstanceImpl() { … }
void ProgressManager::Increment(const Progress::ProgressData &progress_data) { … }
void ProgressManager::Decrement(const Progress::ProgressData &progress_data) { … }
void ProgressManager::ReportProgress(
const Progress::ProgressData &progress_data, EventType type) { … }
void ProgressManager::Expire(llvm::StringRef key) { … }