-
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
[enhancement](jni)append exception check for jni code. #42507
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 |
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
<< "Class java/lang/management/ManagementFactory Not Find.JVM monitoring fails."; | ||
return; | ||
} | ||
Status JvmStats::init() { |
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 'init' has cognitive complexity of 147 (threshold 50) [readability-function-cognitive-complexity]
Status JvmStats::init() {
^
Additional context
be/src/util/jvm_metrics.cpp:192: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::GetJNIEnv(&env));
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:192: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::GetJNIEnv(&env));
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:194: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/ManagementFactory",
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:194: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/ManagementFactory",
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:197: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryMXBeanMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:197: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryMXBeanMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:201: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/MemoryUsage",
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:201: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/MemoryUsage",
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:204: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryUsageUsedMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:204: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryUsageUsedMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:207: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryUsageCommittedMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:207: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryUsageCommittedMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:210: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryUsageMaxMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:210: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryUsageMaxMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:213: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/MemoryMXBean",
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:213: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/MemoryMXBean",
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:216: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getHeapMemoryUsageMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:216: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getHeapMemoryUsageMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:219: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getNonHeapMemoryUsageMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:219: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getNonHeapMemoryUsageMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:223: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:223: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:228: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/util/List", &_listClass));
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:228: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/util/List", &_listClass));
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:230: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getListSizeMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:230: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getListSizeMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:233: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getListUseIndexMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:233: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getListUseIndexMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:236: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/MemoryPoolMXBean",
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:236: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/MemoryPoolMXBean",
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:239: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryPoolMXBeanUsageMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:239: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryPoolMXBeanUsageMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:243: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryPollMXBeanPeakMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:243: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getMemoryPollMXBeanPeakMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:246: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:246: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:250: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getThreadMXBeanMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:250: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(, _getThreadMXBeanMethod, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:254: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:254: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:259: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/GarbageCollectorMXBean",
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:259: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/GarbageCollectorMXBean",
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:262: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:262: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:266: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:266: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:270: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:270: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:274: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/ThreadMXBean",
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:274: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/management/ThreadMXBean",
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:277: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:277: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:282: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:282: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:288: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:288: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:293: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:293: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:296: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:296: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:302: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/Thread$State", &_threadStateClass));
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:302: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::GetGlobalClassRef(env, "java/lang/Thread$State", &_threadStateClass));
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:304: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:304: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:308: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:308: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:312: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:312: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:315: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:315: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:319: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:319: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:322: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:322: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:326: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(jobject, newThreadStateObj, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:326: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jobject, newThreadStateObj, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:328: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::LocalToGlobalRef(env, newThreadStateObj, &_newThreadStateObj));
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:328: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::LocalToGlobalRef(env, newThreadStateObj, &_newThreadStateObj));
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:330: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(jobject, runnableThreadStateObj, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:330: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jobject, runnableThreadStateObj, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:332: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:332: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:335: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(jobject, blockedThreadStateObj, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:335: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jobject, blockedThreadStateObj, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:337: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::LocalToGlobalRef(env, blockedThreadStateObj, &_blockedThreadStateObj));
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:337: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::LocalToGlobalRef(env, blockedThreadStateObj, &_blockedThreadStateObj));
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:339: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(jobject, waitingThreadStateObj, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:339: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jobject, waitingThreadStateObj, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:341: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::LocalToGlobalRef(env, waitingThreadStateObj, &_waitingThreadStateObj));
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:341: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::LocalToGlobalRef(env, waitingThreadStateObj, &_waitingThreadStateObj));
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:343: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:343: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:346: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::LocalToGlobalRef(env, timedWaitingThreadStateObj,
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:346: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::LocalToGlobalRef(env, timedWaitingThreadStateObj,
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:349: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:349: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:352: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:352: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
<< "Class java/lang/management/ManagementFactory Not Find.JVM monitoring fails."; | ||
return; | ||
} | ||
Status JvmStats::init() { |
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 'init' exceeds recommended size/complexity thresholds [readability-function-size]
Status JvmStats::init() {
^
Additional context
be/src/util/jvm_metrics.cpp:190: 169 lines including whitespace and comments (threshold 80)
Status JvmStats::init() {
^
} | ||
|
||
void JvmStats::refresh(JvmMetrics* jvm_metrics) { | ||
Status JvmStats::refresh(JvmMetrics* jvm_metrics) { |
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' has cognitive complexity of 184 (threshold 50) [readability-function-cognitive-complexity]
Status JvmStats::refresh(JvmMetrics* jvm_metrics) {
^
Additional context
be/src/util/jvm_metrics.cpp:362: +1, including nesting penalty of 0, nesting level increased to 1
if (!_init_complete) {
^
be/src/util/jvm_metrics.cpp:367: +1, including nesting penalty of 0, nesting level increased to 1
RETURN_IF_ERROR(JniUtil::GetJNIEnv(&env));
^
be/src/common/status.h:629: expanded from macro 'RETURN_IF_ERROR'
do { \
^
be/src/util/jvm_metrics.cpp:367: +2, including nesting penalty of 1, nesting level increased to 2
RETURN_IF_ERROR(JniUtil::GetJNIEnv(&env));
^
be/src/common/status.h:631: expanded from macro 'RETURN_IF_ERROR'
if (UNLIKELY(!_status_.ok())) { \
^
be/src/util/jvm_metrics.cpp:369: nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:369: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:369: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:373: nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:373: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:373: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:377: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, heapMemoryUsed, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:377: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, heapMemoryUsed, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:380: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:380: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:384: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, heapMemoryMax, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:384: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, heapMemoryMax, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:387: +1, including nesting penalty of 0, nesting level increased to 1
jvm_metrics->jvm_heap_size_bytes_used->set_value(heapMemoryUsed < 0 ? 0 : heapMemoryUsed);
^
be/src/util/jvm_metrics.cpp:389: +1, including nesting penalty of 0, nesting level increased to 1
heapMemoryCommitted < 0 ? 0 : heapMemoryCommitted);
^
be/src/util/jvm_metrics.cpp:390: +1, including nesting penalty of 0, nesting level increased to 1
jvm_metrics->jvm_heap_size_bytes_max->set_value(heapMemoryMax < 0 ? 0 : heapMemoryMax);
^
be/src/util/jvm_metrics.cpp:392: nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:392: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:392: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:396: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:396: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:400: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:400: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:405: +1, including nesting penalty of 0, nesting level increased to 1
nonHeapMemoryCommitted < 0 ? 0 : nonHeapMemoryCommitted);
^
be/src/util/jvm_metrics.cpp:406: +1, including nesting penalty of 0, nesting level increased to 1
jvm_metrics->jvm_non_heap_size_bytes_used->set_value(nonHeapMemoryUsed < 0 ? 0
^
be/src/util/jvm_metrics.cpp:409: nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:409: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:409: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:413: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(jint, size, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:413: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jint, size, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:416: +1, including nesting penalty of 0, nesting level increased to 1
for (int i = 0; i < size; ++i) {
^
be/src/util/jvm_metrics.cpp:417: nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:417: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:417: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:421: nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:421: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:421: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:425: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, used, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:425: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, used, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:428: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, max, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:428: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, max, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:431: nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:431: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:431: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:435: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, peakUsed, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:435: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, peakUsed, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:438: nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:438: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:438: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:444: +2, including nesting penalty of 1, nesting level increased to 2
if (nameStr != nullptr) {
^
be/src/util/jvm_metrics.cpp:446: +3, including nesting penalty of 2, nesting level increased to 3
if (it == _memoryPoolName.end()) {
^
be/src/util/jvm_metrics.cpp:449: +3, including nesting penalty of 2, nesting level increased to 3
if (it->second == memoryPoolNameEnum::YOUNG) {
^
be/src/util/jvm_metrics.cpp:450: +4, including nesting penalty of 3, nesting level increased to 4
jvm_metrics->jvm_young_size_bytes_used->set_value(used < 0 ? 0 : used);
^
be/src/util/jvm_metrics.cpp:451: +4, including nesting penalty of 3, nesting level increased to 4
jvm_metrics->jvm_young_size_bytes_peak_used->set_value(peakUsed < 0 ? 0 : peakUsed);
^
be/src/util/jvm_metrics.cpp:452: +4, including nesting penalty of 3, nesting level increased to 4
jvm_metrics->jvm_young_size_bytes_max->set_value(max < 0 ? 0 : max);
^
be/src/util/jvm_metrics.cpp:454: +1, nesting level increased to 3
} else if (it->second == memoryPoolNameEnum::OLD) {
^
be/src/util/jvm_metrics.cpp:455: +4, including nesting penalty of 3, nesting level increased to 4
jvm_metrics->jvm_old_size_bytes_used->set_value(used < 0 ? 0 : used);
^
be/src/util/jvm_metrics.cpp:456: +4, including nesting penalty of 3, nesting level increased to 4
jvm_metrics->jvm_old_size_bytes_peak_used->set_value(peakUsed < 0 ? 0 : peakUsed);
^
be/src/util/jvm_metrics.cpp:457: +4, including nesting penalty of 3, nesting level increased to 4
jvm_metrics->jvm_old_size_bytes_max->set_value(max < 0 ? 0 : max);
^
be/src/util/jvm_metrics.cpp:464: nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:464: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:464: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:468: nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:468: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:468: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:473: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(jint, threadCount, env, GetArrayLength(threadIds));
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:473: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jint, threadCount, env, GetArrayLength(threadIds));
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:475: nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:475: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:475: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:482: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(jint, peakThreadCount, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:482: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jint, peakThreadCount, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:485: +1, including nesting penalty of 0, nesting level increased to 1
jvm_metrics->jvm_thread_peak_count->set_value(peakThreadCount < 0 ? 0 : peakThreadCount);
^
be/src/util/jvm_metrics.cpp:486: +1, including nesting penalty of 0, nesting level increased to 1
jvm_metrics->jvm_thread_count->set_value(threadCount < 0 ? 0 : threadCount);
^
be/src/util/jvm_metrics.cpp:488: +1, including nesting penalty of 0, nesting level increased to 1
for (int i = 0; i < threadCount; i++) {
^
be/src/util/jvm_metrics.cpp:489: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jobject, threadInfo, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:489: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION(jobject, threadInfo, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:492: +2, including nesting penalty of 1, nesting level increased to 2
if (threadInfo == nullptr) {
^
be/src/util/jvm_metrics.cpp:496: nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:496: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:496: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:500: +2, including nesting penalty of 1, nesting level increased to 2
if (env->IsSameObject(threadState, _newThreadStateObj)) {
^
be/src/util/jvm_metrics.cpp:502: +1, nesting level increased to 2
} else if (env->IsSameObject(threadState, _runnableThreadStateObj)) {
^
be/src/util/jvm_metrics.cpp:504: +1, nesting level increased to 2
} else if (env->IsSameObject(threadState, _blockedThreadStateObj)) {
^
be/src/util/jvm_metrics.cpp:506: +1, nesting level increased to 2
} else if (env->IsSameObject(threadState, _waitingThreadStateObj)) {
^
be/src/util/jvm_metrics.cpp:508: +1, nesting level increased to 2
} else if (env->IsSameObject(threadState, _timedWaitingThreadStateObj)) {
^
be/src/util/jvm_metrics.cpp:510: +1, nesting level increased to 2
} else if (env->IsSameObject(threadState, _terminatedThreadStateObj)) {
^
be/src/util/jvm_metrics.cpp:515: +1, including nesting penalty of 0, nesting level increased to 1
jvm_metrics->jvm_thread_new_count->set_value(threadsNew < 0 ? 0 : threadsNew);
^
be/src/util/jvm_metrics.cpp:516: +1, including nesting penalty of 0, nesting level increased to 1
jvm_metrics->jvm_thread_runnable_count->set_value(threadsRunnable < 0 ? 0 : threadsRunnable);
^
be/src/util/jvm_metrics.cpp:517: +1, including nesting penalty of 0, nesting level increased to 1
jvm_metrics->jvm_thread_blocked_count->set_value(threadsBlocked < 0 ? 0 : threadsBlocked);
^
be/src/util/jvm_metrics.cpp:518: +1, including nesting penalty of 0, nesting level increased to 1
jvm_metrics->jvm_thread_waiting_count->set_value(threadsWaiting < 0 ? 0 : threadsWaiting);
^
be/src/util/jvm_metrics.cpp:520: +1, including nesting penalty of 0, nesting level increased to 1
threadsTimedWaiting < 0 ? 0 : threadsTimedWaiting);
^
be/src/util/jvm_metrics.cpp:521: +1, including nesting penalty of 0, nesting level increased to 1
jvm_metrics->jvm_thread_terminated_count->set_value(threadsTerminated < 0 ? 0
^
be/src/util/jvm_metrics.cpp:524: nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:524: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:524: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:528: +1, including nesting penalty of 0, nesting level increased to 1
JNI_CALL_METHOD_CHECK_EXCEPTION(jint, numCollectors, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:528: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jint, numCollectors, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:531: +1, including nesting penalty of 0, nesting level increased to 1
for (int i = 0; i < numCollectors; i++) {
^
be/src/util/jvm_metrics.cpp:532: nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:532: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:532: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:535: nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(jobject, gcName, env,
^
be/src/util/jni-util.h:49: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
DEFER(env->DeleteLocalRef(result)); \
^
be/src/util/defer_op.h:45: expanded from macro 'DEFER'
#define DEFER(...) DEFER_FWD(__LINE__, __VA_ARGS__)
^
be/src/util/defer_op.h:44: expanded from macro 'DEFER_FWD'
#define DEFER_FWD(n, ...) DEFER_CONCAT(n, __VA_ARGS__)
^
be/src/util/defer_op.h:43: expanded from macro 'DEFER_CONCAT'
#define DEFER_CONCAT(n, ...) const auto defer##n = doris::Defer([&]() { __VA_ARGS__; })
^
be/src/util/jvm_metrics.cpp:535: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(jobject, gcName, env,
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:535: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF(jobject, gcName, env,
^
be/src/util/jni-util.h:50: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION_DELETE_REF'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:538: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, gcCollectionCount, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:538: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, gcCollectionCount, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:541: +2, including nesting penalty of 1, nesting level increased to 2
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, gcCollectionTime, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:42: expanded from macro 'RETURN_ERROR_IF_EXC'
do { \
^
be/src/util/jvm_metrics.cpp:541: +3, including nesting penalty of 2, nesting level increased to 3
JNI_CALL_METHOD_CHECK_EXCEPTION(jlong, gcCollectionTime, env,
^
be/src/util/jni-util.h:54: expanded from macro 'JNI_CALL_METHOD_CHECK_EXCEPTION'
RETURN_ERROR_IF_EXC(env)
^
be/src/util/jni-util.h:43: expanded from macro 'RETURN_ERROR_IF_EXC'
if (env->ExceptionCheck()) [[unlikely]] \
^
be/src/util/jvm_metrics.cpp:545: +2, including nesting penalty of 1, nesting level increased to 2
if (gcNameStr != nullptr) {
^
be/src/util/jvm_metrics.cpp:546: +3, including nesting penalty of 2, nesting level increased to 3
if (strcmp(gcNameStr, "G1 Young Generation") == 0) {
^
be/src/util/jvm_metrics.cpp:550: +1, nesting level increased to 3
} else {
^
} | ||
|
||
void JvmStats::refresh(JvmMetrics* jvm_metrics) { | ||
Status JvmStats::refresh(JvmMetrics* jvm_metrics) { |
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' exceeds recommended size/complexity thresholds [readability-function-size]
Status JvmStats::refresh(JvmMetrics* jvm_metrics) {
^
Additional context
be/src/util/jvm_metrics.cpp:361: 199 lines including whitespace and comments (threshold 80)
Status JvmStats::refresh(JvmMetrics* jvm_metrics) {
^
} | ||
|
||
void JvmStats::refresh(JvmMetrics* jvm_metrics) { | ||
Status JvmStats::refresh(JvmMetrics* jvm_metrics) { |
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: method 'refresh' can be made const [readability-make-member-function-const]
be/src/util/jvm_metrics.h:100:
- Status refresh(JvmMetrics* jvm_metrics);
+ Status refresh(JvmMetrics* jvm_metrics) const;
Status JvmStats::refresh(JvmMetrics* jvm_metrics) { | |
Status JvmStats::refresh(JvmMetrics* jvm_metrics) const { |
TPC-H: Total hot run time: 41624 ms
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 191880 ms
|
ClickBench: Total hot run time: 32.92 s
|
Proposed changes
Because in jni, we need to manually check for exceptions thrown, and if we do not handle the exception, the program will continue to execute, which is not like the try catch logic we often use. Therefore, in order to reduce the potential risks caused by not handling exceptions, I checked most of the jni code and added exception detection for it.