updated gprof task
This commit is contained in:
parent
f884925788
commit
7197f09ca4
@ -1,9 +1,10 @@
|
||||
## 2.3.0
|
||||
+ Added ***project user config***! Read more in `./project.config.user.default`
|
||||
+ **CONFIG:** Added new file `./project.config.user.default`.
|
||||
+ **CONFIG:** Changed `cbuild/default_tasks` to `@cbuild/default_tasks`.
|
||||
+ **CONFIG:** Updated `gprof` task.
|
||||
+ Changed `include` function: replaced prefix `cbuild/` with `@cbuild/`.
|
||||
+ **CONFIG:** Changed `cbuild/default_tasks` to `@cbuild/default_tasks`
|
||||
+ Moved most scripts to `include/`
|
||||
+ Renamed default config to `./project.config.default`
|
||||
+ Moved most scripts to `include/`.
|
||||
+ Renamed default config to `./project.config.default`.
|
||||
+ Added functions:
|
||||
+ `file_copy_default_if_not_present()`
|
||||
+ `replace_var_value_in_script()`
|
||||
|
||||
@ -148,8 +148,11 @@ case "$TASK" in
|
||||
# requires graphviz (https://www.graphviz.org/download/source/)
|
||||
gprof)
|
||||
OUTDIR="$OUTDIR/gprof"
|
||||
# -pg adds code to executable, that generates file containing function call info (gmon.out)
|
||||
C_ARGS="-O2 -flto=auto -fuse-linker-plugin -pg"
|
||||
# arguments that emit some call counter code and disable optimizations to see function names
|
||||
# https://github.com/msys2/MINGW-packages/issues/8503#issuecomment-1365475205
|
||||
C_ARGS="-O0 -g -pg -no-pie -fno-omit-frame-pointer
|
||||
-fno-inline-functions -fno-inline-functions-called-once
|
||||
-fno-optimize-sibling-calls -fopenmp"
|
||||
CPP_ARGS="$C_ARGS"
|
||||
LINKER_ARGS="$CPP_ARGS $LINKER_LIBS"
|
||||
PRE_TASK_SCRIPT="@cbuild/default_tasks/build_exec.sh"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user