debug: generate call graph profile data using gprof
This will generate profile data that can be analyzed using gprof. When you build the application (currently for native_posix only), after running the application you will get a file "gmon.out" with the call graph which can be processed with gprof: gprof build/zephyr/zephyr.exe gmon.out > analysis.txt Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
bfcb181b49
commit
399a0b4b31
4 changed files with 15 additions and 1 deletions
|
@ -177,6 +177,8 @@ set_compiler_property(PROPERTY imacros -imacros)
|
|||
# GCC compiler flags for sanitizing.
|
||||
set_compiler_property(PROPERTY sanitize_address -fsanitize=address)
|
||||
|
||||
set_compiler_property(PROPERTY gprof -pg)
|
||||
|
||||
set_compiler_property(PROPERTY sanitize_undefined -fsanitize=undefined)
|
||||
|
||||
# GCC compiler flag for turning off thread-safe initialization of local statics
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue