mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
31 lines
380 B
C++
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();
|
|
};
|
|
|
|
}
|