Skip to content

Commit

Permalink
tests: runtime threads stats
Browse files Browse the repository at this point in the history
Adds tests to verify the gathering of thread runtime stats.

Signed-off-by: Peter Mitsis <[email protected]>
  • Loading branch information
peter-mitsis authored and MaureenHelm committed May 13, 2022
1 parent 976e408 commit e83dde1
Show file tree
Hide file tree
Showing 4 changed files with 575 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/kernel/usage/thread_runtime_stats/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(thread_runtime_stats)

FILE(GLOB app_sources src/*.c)
target_sources(app PRIVATE ${app_sources})
6 changes: 6 additions & 0 deletions tests/kernel/usage/thread_runtime_stats/prj.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CONFIG_ZTEST=y
CONFIG_IRQ_OFFLOAD=y
CONFIG_MP_NUM_CPUS=1
CONFIG_THREAD_RUNTIME_STATS=y
CONFIG_SCHED_THREAD_USAGE_ALL=y
CONFIG_SCHED_THREAD_USAGE_ANALYSIS=y
Loading

0 comments on commit e83dde1

Please sign in to comment.