mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
32 lines
389 B
C++
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();
|
|
};
|
|
|
|
}
|