mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-07-16 03:04:21 +08:00
add LIBUV_HANDLE_BACKTRACE
Signed-off-by: pengyaozong <pengyaozong@xiaomi.com>
This commit is contained in:
parent
c693b3064e
commit
63f43e70a9
@ -40,6 +40,16 @@ config LIBUV_PREP_EVENT_SIZE
|
||||
|
||||
endif
|
||||
|
||||
config LIBUV_HANDLE_BACKTRACE
|
||||
int "the depth of libuv handle backtrace"
|
||||
default 0
|
||||
---help---
|
||||
Config the depth of backtrace for libuv handle creation by specified this
|
||||
config: disable backtrace by 0
|
||||
when enabled, uv_print_all_handles & uv_print_active_handles will print
|
||||
handle alloc backtrace additionally.
|
||||
it's useful for libuv handle leak debugging
|
||||
|
||||
choice
|
||||
prompt "libuv utils"
|
||||
default LIBUV_UTILS_NONE
|
||||
|
@ -26,4 +26,8 @@ CONFIGURED_APPS += $(APPDIR)/system/libuv
|
||||
CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/system/libuv/libuv/include
|
||||
CXXFLAGS += ${INCDIR_PREFIX}$(APPDIR)/system/libuv/libuv/include
|
||||
|
||||
# define UV_HANDLE_BACKTRACE
|
||||
CFLAGS += -DUV_HANDLE_BACKTRACE=CONFIG_LIBUV_HANDLE_BACKTRACE
|
||||
CXXFLAGS += -DUV_HANDLE_BACKTRACE=CONFIG_LIBUV_HANDLE_BACKTRACE
|
||||
|
||||
endif
|
||||
|
@ -28,7 +28,6 @@ LIBUV_TARBALL = v$(LIBUV_VERSION).zip
|
||||
LIBUV_URL_BASE = https://github.com/libuv/libuv/archive/refs/tags
|
||||
LIBUV_URL = $(LIBUV_URL_BASE)/$(LIBUV_TARBALL)
|
||||
|
||||
|
||||
$(LIBUV_TARBALL):
|
||||
@echo "Downloading: $(LIBUV_TARBALL)"
|
||||
$(Q) curl -L $(LIBUV_URL) -o $(LIBUV_TARBALL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user