1#pragma once
2
3#include <Common/ThreadPool.h>
4
5namespace Poco
6{
7 class Logger;
8}
9
10namespace DB
11{
12
13class TraceLog;
14
15class TraceCollector
16{
17private:
18 Poco::Logger * log;
19 std::shared_ptr<TraceLog> trace_log;
20 ThreadFromGlobalPool thread;
21
22 void run();
23
24 static void notifyToStop();
25
26public:
27 TraceCollector(std::shared_ptr<TraceLog> & trace_log_);
28
29 ~TraceCollector();
30};
31
32}
33