(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
This commit is contained in:
		
							
								
								
									
										4
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								Makefile
									
									
									
									
									
								
							@@ -325,6 +325,10 @@ endif
 | 
				
			|||||||
ifdef PROFILE
 | 
					ifdef PROFILE
 | 
				
			||||||
  CFLAGS += -pg
 | 
					  CFLAGS += -pg
 | 
				
			||||||
  LDFLAGS += -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
 | 
					endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CDEFS=-DWITH_REV
 | 
					CDEFS=-DWITH_REV
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user