From 18d1638e533a9574fae6607578ccc5aa27be0cc2 Mon Sep 17 00:00:00 2001 From: truelight Date: Fri, 8 Jun 2007 17:54:48 +0000 Subject: (svn r10067) -Add: 'make run-prof' profiles your code, simular to 'make run' and 'make run-gdb' --- Makefile.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.in b/Makefile.in index 9476f06ed..19c4c667f 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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/%=%); \ -- cgit v1.2.3-70-g09d2