17 std::function<
void(
const std::string &event,
18 std::chrono::milliseconds duration)>
21 callback(kv.first, kv.second);
Class used to track the duration of long running tasks related to a single scope for reporting.
void ForEachTimedTask(std::function< void(const std::string &name, std::chrono::milliseconds duration)> callback)
Executive the given callback on each recorded task.
std::unordered_map< std::string, std::chrono::milliseconds > m_timed_tasks
ScopedTaskTimer & ForGlobal()
ScopedTaskTimer & ForThread(lldb::tid_t tid)
llvm::DenseMap< lldb::tid_t, ScopedTaskTimer > m_thread_timers
ScopedTaskTimer m_global_timer
A class that represents a running process on the host machine.