diff options
author | truelight <truelight@openttd.org> | 2007-06-08 17:54:48 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2007-06-08 17:54:48 +0000 |
commit | 18d1638e533a9574fae6607578ccc5aa27be0cc2 (patch) | |
tree | 9ac2ce7b1297d6ddd9ba86a90ca7cb18dcbd799f | |
parent | e8c6d571508fbb49636b7fc1b70b58813d2caaa3 (diff) | |
download | openttd-18d1638e533a9574fae6607578ccc5aa27be0cc2.tar.xz |
(svn r10067) -Add: 'make run-prof' profiles your code, simular to 'make run' and 'make run-gdb'
-rw-r--r-- | Makefile.in | 3 |
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/%=%); \ |