blob: 63791c0374c2a6f43c7dac8e5cf91dd98e861447 (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#pragma once
#include <Interpreters/SystemLog.h>
#include <Core/NamesAndTypes.h>
#include <Core/NamesAndAliases.h>
#include <Processors/IProcessor.h>
namespace DB
{
struct ProcessorProfileLogElement
{
time_t event_time{};
Decimal64 event_time_microseconds{};
UInt64 id{};
std::vector<UInt64> parent_ids;
UInt64 plan_step{};
UInt64 plan_group{};
String initial_query_id;
String query_id;
String processor_name;
/// Milliseconds spend in IProcessor::work()
UInt32 elapsed_us{};
/// IProcessor::NeedData
UInt32 input_wait_elapsed_us{};
/// IProcessor::PortFull
UInt32 output_wait_elapsed_us{};
size_t input_rows{};
size_t input_bytes{};
size_t output_rows{};
size_t output_bytes{};
static std::string name() { return "ProcessorsProfileLog"; }
static NamesAndTypesList getNamesAndTypes();
static NamesAndAliases getNamesAndAliases() { return {}; }
void appendToBlock(MutableColumns & columns) const;
static const char * getCustomColumnList() { return nullptr; }
};
class ProcessorsProfileLog : public SystemLog<ProcessorProfileLogElement>
{
public:
using SystemLog<ProcessorProfileLogElement>::SystemLog;
};
}
|