mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
build: Add ability to generate gprof output
Suitable for profiling. We've had this before 2.0. As earlier, pie code is not profiled as well as syscalls library. So simply build as "make GMON=1". Signed-off-by: Cyrill Gorcunov <gorcunov@virtuozzo.com> Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
39b47178a1
commit
8709f9128b
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
|
@ -101,6 +101,12 @@ else
|
|||
CFLAGS += -O2 -g
|
||||
endif
|
||||
|
||||
ifeq ($(GMON),1)
|
||||
CFLAGS += -pg
|
||||
GMONLDOPT += -pg
|
||||
export GMON GMONLDOPT
|
||||
endif
|
||||
|
||||
CFLAGS += $(WARNINGS) $(DEFINES)
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue