From b69c716c9823b19c32e232a1d0652201acf20c48 Mon Sep 17 00:00:00 2001 From: Yaochenger <1516081466@qq.com> Date: Wed, 9 Jul 2025 15:10:17 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20Thread-Metric=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/Kconfig | 1 + tools/thread-metric/Kconfig | 31 ++++++++++++++++++++++++++++++ tools/thread-metric/package.json | 33 ++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 tools/thread-metric/Kconfig create mode 100644 tools/thread-metric/package.json diff --git a/tools/Kconfig b/tools/Kconfig index e951e25a9e..8800f09888 100644 --- a/tools/Kconfig +++ b/tools/Kconfig @@ -49,4 +49,5 @@ source "$PKGS_DIR/packages/tools/RT_Trace/Kconfig" source "$PKGS_DIR/packages/tools/zdebug/Kconfig" source "$PKGS_DIR/packages/tools/RVBacktrace/Kconfig" source "$PKGS_DIR/packages/tools/hpatchlite-wrapper/Kconfig" +source "$PKGS_DIR/packages/tools/thread-metric/Kconfig" endmenu diff --git a/tools/thread-metric/Kconfig b/tools/thread-metric/Kconfig new file mode 100644 index 0000000000..67c6f440c3 --- /dev/null +++ b/tools/thread-metric/Kconfig @@ -0,0 +1,31 @@ + +# Kconfig file for package thread-metric +menuconfig PKG_USING_THREAD_METRIC + bool "Thread metrics adapted to RT-Thread." + default n + +if PKG_USING_THREAD_METRIC + + config PKG_THREAD_METRIC_PATH + string + default "/packages/tools/thread-metric" + + choice + prompt "Version" + help + Select the package version + + config PKG_USING_THREAD_METRIC_V100 + bool "v1.0.0" + + config PKG_USING_THREAD_METRIC_LATEST_VERSION + bool "latest" + endchoice + + config PKG_THREAD_METRIC_VER + string + default "v1.0.0" if PKG_USING_THREAD_METRIC_V100 + default "latest" if PKG_USING_THREAD_METRIC_LATEST_VERSION + +endif + diff --git a/tools/thread-metric/package.json b/tools/thread-metric/package.json new file mode 100644 index 0000000000..56961d4a61 --- /dev/null +++ b/tools/thread-metric/package.json @@ -0,0 +1,33 @@ +{ + "name": "thread-metric", + "description": "Thread metric adapted to RT-Thread.", + "description_zh": "RT-Thread适配的Thread metric组件,用于OS性能测试与辅助优化。", + "enable": "PKG_USING_THREAD_METRIC", + "keywords": [ + "thread-metric" + ], + "category": "tools", + "author": { + "name": "Yaochenger", + "email": "1516081466@qq.com", + "github": "Yaochenger" + }, + "license": "MIT", + "repository": "https://github.com/Yaochenger/Thread-Metric", + "icon": "unknown", + "homepage": "https://github.com/Yaochenger/Thread-Metric#readme", + "doc": "unknown", + "site": [ + { + "version": "v1.0.0", + "URL": "https://github.com/Yaochenger/Thread-Metric/archive/refs/tags/1.0.0.zip", + "filename": "thread-metric-1.0.0.zip" + }, + { + "version": "latest", + "URL": "https://github.com/Yaochenger/Thread-Metric.git", + "filename": "", + "VER_SHA": "master" + } + ] +}