(svn r3611) -Feature: [OSX profiling] Shark (Xcode's profiling tool) can now relate CPU usage to lines in the source files
authorbjarni
Fri, 17 Feb 2006 20:24:17 +0000
changeset 3031 bd5cae1efa8c
parent 3030 0ca48e75e4ea
child 3032 3d607ca2d8fc
(svn r3611) -Feature: [OSX profiling] Shark (Xcode's profiling tool) can now relate CPU usage to lines in the source files
Now OSX users can tell what lines in the C code that keeps the CPU busy instead of just ASM code
Note: PROFILE needs to be enabled in Makefile.config for this to work
Makefile
--- a/Makefile	Fri Feb 17 16:42:08 2006 +0000
+++ b/Makefile	Fri Feb 17 20:24:17 2006 +0000
@@ -325,6 +325,10 @@
 ifdef PROFILE
   CFLAGS += -pg
   LDFLAGS += -pg
+  ifdef OSX
+  # Shark (Xcode's profiling tool) needs -g to relate CPU usage to line numbers in the source code
+    BASECFLAGS += -g
+  endif
 endif
 
 CDEFS=-DWITH_REV