ClickHouse/src/Interpreters/TraceCollector.h
2023-05-08 23:00:20 +00:00

32 lines
389 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 tryClosePipe();
void run();
};
}