From 9ed8143264e5b7944bf2f6a8be3fafc359edd9bd Mon Sep 17 00:00:00 2001 From: bjarni Date: Fri, 17 Feb 2006 20:24:17 +0000 Subject: (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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 139c5e211..852a8b6c1 100644 --- a/Makefile +++ b/Makefile @@ -325,6 +325,10 @@ endif 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 -- cgit v1.2.3-70-g09d2