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