[improvement](profile) Insert into add LoadChannel runtime profile (#18908)

TabletSink and LoadChannel in BE are M: N relationship,
Every once in a while LoadChannel will randomly return its own runtime profile to a TabletSink, so usually all LoadChannel runtime profiles are saved on each TabletSink, and the timeliness of the same LoadChannel profile saved on different TabletSinks is different, and each TabletSink will periodically send fe reports all the LoadChannel profiles saved by itself, and ensures to update the latest LoadChannel profile according to the timestamp.
This commit is contained in:
Xinyi Zou
2023-04-24 09:41:57 +08:00
committed by GitHub
parent d2f50ce3f5
commit 8e4710079d
29 changed files with 265 additions and 43 deletions

View File

@ -324,7 +324,7 @@ void AggregationNode::_init_hash_method(std::vector<VExprContext*>& probe_exprs)
}
Status AggregationNode::prepare_profile(RuntimeState* state) {
auto* memory_usage = runtime_profile()->create_child("MemoryUsage", true, true);
auto* memory_usage = runtime_profile()->create_child("PeakMemoryUsage", true, true);
runtime_profile()->add_child(memory_usage, false, nullptr);
_hash_table_memory_usage = ADD_COUNTER(memory_usage, "HashTable", TUnit::BYTES);
_serialize_key_arena_memory_usage =