summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-06-08 17:54:48 +0000
committertruelight <truelight@openttd.org>2007-06-08 17:54:48 +0000
commit18d1638e533a9574fae6607578ccc5aa27be0cc2 (patch)
tree9ac2ce7b1297d6ddd9ba86a90ca7cb18dcbd799f
parente8c6d571508fbb49636b7fc1b70b58813d2caaa3 (diff)
downloadopenttd-18d1638e533a9574fae6607578ccc5aa27be0cc2.tar.xz
(svn r10067) -Add: 'make run-prof' profiles your code, simular to 'make run' and 'make run-gdb'
-rw-r--r--Makefile.in3
1 files changed, 3 insertions, 0 deletions
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/%=%); \