#include "lldb/Core/Progress.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Utility/StreamString.h"
#include "llvm/Support/Signposts.h"
#include <cstdint>
#include <mutex>
#include <optional>
usingnamespacelldb;
usingnamespacelldb_private;
std::atomic<uint64_t> Progress::g_id(0);
static llvm::ManagedStatic<llvm::SignpostEmitter> g_progress_signposts;
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) { … }