Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2de3b96

Browse files
authored
Merge pull request RT-Thread#1911 from Yaochenger/thread-metric
[add] Thread-Metric性能测试
2 parents 693512d + b69c716 commit 2de3b96

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

tools/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,5 @@ source "$PKGS_DIR/packages/tools/RT_Trace/Kconfig"
4949
source "$PKGS_DIR/packages/tools/zdebug/Kconfig"
5050
source "$PKGS_DIR/packages/tools/RVBacktrace/Kconfig"
5151
source "$PKGS_DIR/packages/tools/hpatchlite-wrapper/Kconfig"
52+
source "$PKGS_DIR/packages/tools/thread-metric/Kconfig"
5253
endmenu

tools/thread-metric/Kconfig

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
# Kconfig file for package thread-metric
3+
menuconfig PKG_USING_THREAD_METRIC
4+
bool "Thread metrics adapted to RT-Thread."
5+
default n
6+
7+
if PKG_USING_THREAD_METRIC
8+
9+
config PKG_THREAD_METRIC_PATH
10+
string
11+
default "/packages/tools/thread-metric"
12+
13+
choice
14+
prompt "Version"
15+
help
16+
Select the package version
17+
18+
config PKG_USING_THREAD_METRIC_V100
19+
bool "v1.0.0"
20+
21+
config PKG_USING_THREAD_METRIC_LATEST_VERSION
22+
bool "latest"
23+
endchoice
24+
25+
config PKG_THREAD_METRIC_VER
26+
string
27+
default "v1.0.0" if PKG_USING_THREAD_METRIC_V100
28+
default "latest" if PKG_USING_THREAD_METRIC_LATEST_VERSION
29+
30+
endif
31+

tools/thread-metric/package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "thread-metric",
3+
"description": "Thread metric adapted to RT-Thread.",
4+
"description_zh": "RT-Thread适配的Thread metric组件,用于OS性能测试与辅助优化。",
5+
"enable": "PKG_USING_THREAD_METRIC",
6+
"keywords": [
7+
"thread-metric"
8+
],
9+
"category": "tools",
10+
"author": {
11+
"name": "Yaochenger",
12+
"email": "[email protected]",
13+
"github": "Yaochenger"
14+
},
15+
"license": "MIT",
16+
"repository": "https://github.com/Yaochenger/Thread-Metric",
17+
"icon": "unknown",
18+
"homepage": "https://github.com/Yaochenger/Thread-Metric#readme",
19+
"doc": "unknown",
20+
"site": [
21+
{
22+
"version": "v1.0.0",
23+
"URL": "https://github.com/Yaochenger/Thread-Metric/archive/refs/tags/1.0.0.zip",
24+
"filename": "thread-metric-1.0.0.zip"
25+
},
26+
{
27+
"version": "latest",
28+
"URL": "https://github.com/Yaochenger/Thread-Metric.git",
29+
"filename": "",
30+
"VER_SHA": "master"
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)