blob: 382e7511ac60d26516d88161286bc71394f86b6a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#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();
};
}
|