changeset 6828:4214eaa23e0c draft

(svn r10067) -Add: 'make run-prof' profiles your code, simular to 'make run' and 'make run-gdb'
author truelight <truelight@openttd.org>
date Fri, 08 Jun 2007 17:54:48 +0000
parents 7cb8f29bc3ee
children 7b96a3eb93ba
files Makefile.in
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in
+++ b/Makefile.in
@@ -99,6 +99,9 @@
 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/%=%); \