[Profile] Make running profile clearer and more intuitive to improve usability (#3405)
This CL mainly made the following modifications:
1. Delete Invalid MemoryUsed Counter and Add PeakMemUsage in each exec node and datastreamsender
2. Add intent in child execnode profile,make it is easily to know the relationship between execnode
3. Del _is_result_order we not support any more in olap_scan_node.h and olap_scan_node.cpp
4. Add scan_disk method to olap_scanner to fix the counter _num_disks_accessed_counter
5. Now we do not use buffer pool to read and write disk, so annotation eadio counter and
6. Delete the MemUsed counter in exec node.
This commit is contained in:
@ -172,15 +172,13 @@ Status ExecNode::prepare(RuntimeState* state) {
|
||||
DCHECK(_runtime_profile.get() != NULL);
|
||||
_rows_returned_counter =
|
||||
ADD_COUNTER(_runtime_profile, "RowsReturned", TUnit::UNIT);
|
||||
_memory_used_counter =
|
||||
ADD_COUNTER(_runtime_profile, "MemoryUsed", TUnit::BYTES);
|
||||
_rows_returned_rate = runtime_profile()->add_derived_counter(
|
||||
ROW_THROUGHPUT_COUNTER, TUnit::UNIT_PER_SECOND,
|
||||
boost::bind<int64_t>(&RuntimeProfile::units_per_second,
|
||||
_rows_returned_counter,
|
||||
runtime_profile()->total_time_counter()),
|
||||
"");
|
||||
_mem_tracker.reset(new MemTracker(-1, _runtime_profile->name(), state->instance_mem_tracker()));
|
||||
_mem_tracker.reset(new MemTracker(_runtime_profile.get(), -1, _runtime_profile->name(), state->instance_mem_tracker()));
|
||||
_expr_mem_tracker.reset(new MemTracker(-1, "Exprs", _mem_tracker.get()));
|
||||
_expr_mem_pool.reset(new MemPool(_expr_mem_tracker.get()));
|
||||
// TODO chenhao
|
||||
@ -339,7 +337,7 @@ Status ExecNode::create_tree_helper(
|
||||
}
|
||||
|
||||
if (!node->_children.empty()) {
|
||||
node->runtime_profile()->add_child(node->_children[0]->runtime_profile(), false, NULL);
|
||||
node->runtime_profile()->add_child(node->_children[0]->runtime_profile(), true, NULL);
|
||||
}
|
||||
|
||||
return Status::OK();
|
||||
|
||||
Reference in New Issue
Block a user