xiaoxiang781216 commented on code in PR #14740:
URL: https://github.com/apache/nuttx/pull/14740#discussion_r1837917276


##########
arch/sim/Kconfig:
##########
@@ -92,7 +92,7 @@ config SIM_UBSAN_DUMMY
 
 config SIM_GPROF

Review Comment:
   ```suggestion
   config SIM_PROFILE
   ```



##########
arch/arm/src/cmake/armclang.cmake:
##########
@@ -120,7 +120,7 @@ if(CONFIG_SCHED_GCOV)
   add_compile_options(-fprofile-generate -ftest-coverage)
 endif()
 
-if(CONFIG_SCHED_GPROF_ALL)
+if(CONFIG_GPROF_ALL)

Review Comment:
   ```suggestion
   if(CONFIG_PROFILE_ALL)
   ```



##########
libs/libbuiltin/Kconfig:
##########
@@ -35,6 +35,30 @@ config COVERAGE_COMPILER_RT
        select LIB_COMPILER_RT
        default n
 
+config GPROF_PROFILING
+       bool "Enable gprof profiling"
+       select LIB_BUILTIN
+       default n
+       ---help---
+               Enable gprof profiling support.  This will cause the compiler to
+               generate additional code to support profiling.  This will also
+               cause the linker to include the gmon.out file in the final
+               executable.
+               Add the "-pg" parameter to the Makefile when compiling to obtain
+               the function call graph of the specified module. If you do this,
+               please enable "CONFIG_FRAME_POINTER"
+
+config GPROF_ALL

Review Comment:
   ```suggestion
   config PROFILE_ALL
   ```



##########
libs/libbuiltin/libgcc/gprof/profile_monitor.c:
##########
@@ -0,0 +1,584 @@
+/****************************************************************************
+ * libs/libbuiltin/libgcc/gprof/profile_monitor.c

Review Comment:
   ```suggestion
    * libs/libbuiltin/libgcc/profile.c
   ```



##########
libs/libbuiltin/Kconfig:
##########
@@ -35,6 +35,30 @@ config COVERAGE_COMPILER_RT
        select LIB_COMPILER_RT
        default n
 
+config GPROF_PROFILING

Review Comment:
   ```suggestion
   config PROFILE_MINI
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to