ClickHouse/src/Interpreters/TraceCollector.h
2022-11-24 20:12:16 +00:00

31 lines
380 B
C++

#pragma once
#include <Common/ThreadPool.h>
class StackTrace;
namespace Poco
{
class Logger;
}
namespace DB
{
class TraceLog;
class TraceCollector
{
public:
explicit TraceCollector(std::shared_ptr<TraceLog> trace_log_);
~TraceCollector();
private:
std::shared_ptr<TraceLog> trace_log;
ThreadFromGlobalPool thread;
void run();
void stop();
};
}