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
commit4f445aad221c48202b155a26ef2453b55e25f914 (patch)
tree9ac2ce7b1297d6ddd9ba86a90ca7cb18dcbd799f
parent9fe860f5f9e894631f2e7ed519423f0e4af85f37 (diff)
downloadopenttd-4f445aad221c48202b155a26ef2453b55e25f914.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/%=%); \