(svn r10067) -Add: 'make run-prof' profiles your code, simular to 'make run' and 'make run-gdb'

This commit is contained in:
truelight 2007-06-08 17:54:48 +00:00
parent e8c6d57150
commit 18d1638e53
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ run: all
run-gdb: all
$(Q)cd !!BIN_DIR!! && gdb --ex run --args ./!!TTD!! $(OPENTTD_ARGS)
run-prof: all
$(Q)cd !!BIN_DIR!! && ./!!TTD!! $(OPENTTD_ARGS) && gprof !!TTD!! | less
%.o:
@for dir in $(SRC_DIRS); do \
$(MAKE) -C $$dir $(@:src/%=%); \