Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
Thread analyzer

Module for analyzing threads. More...

Data Structures

struct  thread_analyzer_info
 

Typedefs

typedef void(* thread_analyzer_cb) (struct thread_analyzer_info *info)
 Thread analyzer stack size callback function. More...
 

Functions

void thread_analyzer_run (thread_analyzer_cb cb)
 Run the thread analyzer and provide information to the callback. More...
 
void thread_analyzer_print (void)
 Run the thread analyzer and print stack size statistics. More...
 

Detailed Description

Module for analyzing threads.

This module implements functions and the configuration that simplifies thread analysis.

Typedef Documentation

◆ thread_analyzer_cb

typedef void(* thread_analyzer_cb) (struct thread_analyzer_info *info)

#include <include/debug/thread_analyzer.h>

Thread analyzer stack size callback function.

Callback function with thread analysis information.

Parameters
infoThread analysis information.

Function Documentation

◆ thread_analyzer_print()

void thread_analyzer_print ( void  )

#include <include/debug/thread_analyzer.h>

Run the thread analyzer and print stack size statistics.

This function runs the thread analyzer and prints the output in standard form.

◆ thread_analyzer_run()

void thread_analyzer_run ( thread_analyzer_cb  cb)

#include <include/debug/thread_analyzer.h>

Run the thread analyzer and provide information to the callback.

This function analyzes the current state for all threads and calls a given callback on every thread found.

Parameters
cbThe callback function handler