profiling disabled

This commit is contained in:
timerix 2023-04-01 18:08:51 +06:00
parent 42339b739b
commit c85ac6e93e
3 changed files with 7 additions and 2 deletions

View File

@ -7,7 +7,7 @@ all: build_exec_dbg
rebuild_all: rebuild_kerep rebuild_imgui rebuild_imgui_node_editor embed_fonts
# creates executable using profile info generated by profile
build_exec: rebuild_all profile
build_exec: rebuild_all # profile
@cbuild/call_task.sh build_exec 2>&1 | tee -a make_raw.log
# creates executable with debug info and no optimizations

View File

@ -68,7 +68,8 @@ case "$TASK" in
# -flto applies more optimizations across object files
# -flto=auto is needed to multithreaded copilation
# -fuse-linker-plugin is required to use static libs with lto, it strips away all
C_ARGS="-O2 -flto=auto -fuse-linker-plugin -fprofile-use -fprofile-prefix-path=$(realpath $OBJDIR)/objects"
C_ARGS="-O2 -flto=auto -fuse-linker-plugin"
#-fprofile-use -fprofile-prefix-path=$(realpath $OBJDIR)/objects
CPP_ARGS="$C_ARGS"
LINKER_ARGS="$CPP_ARGS $LINKER_LIBS"
PRE_TASK_SCRIPT=tasks/pre_build.sh
@ -108,6 +109,7 @@ case "$TASK" in
PRE_TASK_SCRIPT=tasks/pre_build.sh
TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
POST_TASK_SCRIPT=cbuild/default_tasks/profile.sh
KEREP_BUILD_TASK=build_static_lib
;;
# compiles program with -pg and runs it with gprof
# uses gprof2dot python script to generate function call tree (pip install gprof2dot)
@ -121,6 +123,7 @@ case "$TASK" in
PRE_TASK_SCRIPT=tasks/pre_build.sh
TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
POST_TASK_SCRIPT=cbuild/default_tasks/gprof.sh
KEREP_BUILD_TASK=build_static_lib
;;
# compiles executable with sanitizers and executes it to find errors and warnings
sanitize)
@ -131,6 +134,7 @@ case "$TASK" in
PRE_TASK_SCRIPT=tasks/pre_build.sh
TASK_SCRIPT=cbuild/default_tasks/build_exec.sh
POST_TASK_SCRIPT=cbuild/default_tasks/exec.sh
KEREP_BUILD_TASK=build_static_lib
;;
# deletes generated files
clean)

1
imgui-node-editor Submodule

@ -0,0 +1 @@
Subproject commit d2113d0f25f17076791d3bdbc9ce968eb9408751