Skip to content

Commit

Permalink
update 1
Browse files Browse the repository at this point in the history
Signed-off-by: liuyehcf <[email protected]>
  • Loading branch information
liuyehcf committed Oct 30, 2023
1 parent 28731e6 commit 20e264f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions be/src/exec/pipeline/query_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,11 @@ class QueryContext : public std::enable_shared_from_this<QueryContext> {
duration_cast<milliseconds>(steady_clock::now().time_since_epoch() + _query_expire_seconds).count();
}
void set_enable_profile() { _enable_profile = true; }
void set_enable_big_query_profile() { _enable_big_query_profile = true; }
bool enable_profile() {
if (_enable_profile) {
return true;
}
if (!_enable_big_query_profile) {
if (_big_query_profile_threshold_ns <= 0) {
return false;
}
return MonotonicNanos() - _query_begin_time > _big_query_profile_threshold_ns;
Expand Down Expand Up @@ -214,8 +213,7 @@ class QueryContext : public std::enable_shared_from_this<QueryContext> {
std::once_flag _init_mem_tracker_once;
std::shared_ptr<RuntimeProfile> _profile;
bool _enable_profile = false;
bool _enable_big_query_profile = false;
int64_t _big_query_profile_threshold_ns;
int64_t _big_query_profile_threshold_ns = 0;
int64_t _runtime_profile_report_interval_ns = std::numeric_limits<int64_t>::max();
TPipelineProfileLevel::type _profile_level;
std::shared_ptr<MemTracker> _mem_tracker;
Expand Down
3 changes: 1 addition & 2 deletions gensrc/thrift/InternalService.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,7 @@ struct TQueryOptions {
107: optional i64 global_runtime_filter_build_max_size;
108: optional i64 runtime_filter_rpc_http_min_size;

109: optional bool enable_big_query_profile;
110: optional i64 big_query_profile_second_threshold;
109: optional i64 big_query_profile_second_threshold;
}


Expand Down

0 comments on commit 20e264f

Please sign in to comment.