-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[opt](memory) Support Memory Profile #41310
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
2 similar comments
run buildall |
run buildall |
TeamCity be ut coverage result: |
1dfee88
to
80dc0c2
Compare
run buildall |
TeamCity be ut coverage result: |
80dc0c2
to
e3d8df7
Compare
run buildall |
TeamCity be ut coverage result: |
run buildall |
1 similar comment
run buildall |
TeamCity be ut coverage result: |
run buildall |
TeamCity be ut coverage result: |
cb1aabf
to
1b8a421
Compare
run buildall |
TeamCity be ut coverage result: |
run buildall |
3 similar comments
run buildall |
run buildall |
run buildall |
@@ -192,7 +200,7 @@ class GlobalMemoryArbitrator { | |||
} | |||
|
|||
private: | |||
static std::atomic<int64_t> _s_process_reserved_memory; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要去s了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个类里面其他 static 都没有 s,这是当初笔误了
只有 MemInfo 里的 static 加了 s,为了和历史保持一致,其他地方都不要s了吧
@@ -51,8 +51,8 @@ class TRuntimeProfileTree; | |||
#define MACRO_CONCAT(x, y) CONCAT_IMPL(x, y) | |||
|
|||
#define ADD_LABEL_COUNTER(profile, name) (profile)->add_counter(name, TUnit::NONE) | |||
#define ADD_LABEL_COUNTER_WITH_LEVEL(profile, name, type) \ | |||
(profile)->add_counter_with_level(name, TUnit::NONE, type) | |||
#define ADD_LABEL_COUNTER_WITH_LEVEL(profile, name, level) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个好像没用到
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是之前写错了,最后一个参数名 type 应该是 level
b1d85f0
to
7bf941e
Compare
run buildall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
static bvar::Adder<int64_t> memory_all_tasks_memory_bytes("memory_all_tasks_memory_bytes"); | ||
static bvar::Adder<int64_t> memory_untracked_memory_bytes("memory_untracked_memory_bytes"); | ||
|
||
MemoryProfile::MemoryProfile() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use '= default' to define a trivial default constructor [modernize-use-equals-default]
MemoryProfile::MemoryProfile() {
^
_tasks_memory_profile.set(std::make_unique<RuntimeProfile>("TasksMemorySnapshot")); | ||
} | ||
|
||
void MemoryProfile::refresh_memory_overview_profile() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: function 'refresh_memory_overview_profile' exceeds recommended size/complexity thresholds [readability-function-size]
void MemoryProfile::refresh_memory_overview_profile() {
^
Additional context
be/src/runtime/memory/memory_profile.cpp:46: 243 lines including whitespace and comments (threshold 80)
void MemoryProfile::refresh_memory_overview_profile() {
^
|
||
namespace doris { | ||
|
||
ProcessProfile::ProcessProfile() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: use '= default' to define a trivial default constructor [modernize-use-equals-default]
ProcessProfile::ProcessProfile() {
^
mem_tracker
web page and replace it with more intuitive Memory Profile.