[banshee] [build] Add run-profiled target



commit 656be219b12c7d4d0703033f05557bcb1a54ee27
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Wed Nov 17 12:36:39 2010 -0600

    [build] Add run-profiled target
    
    Uses the new profiler in Mono 2.9/git.  I've been using it to identify
    some low-hanging optimization fruit in Hyena and Banshee.

 Makefile.am |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index a2d863a..228fad9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -61,6 +61,9 @@ check-bootstrap-env:
 run: check-bootstrap-env $(MO_FILES)
 	(cd bin; $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS))
 
+run-profiled: check-bootstrap-env $(MO_FILES)
+	(cd bin; LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):/usr/local/lib $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) --profile=log:time=fast,calls,noalloc,maxframes=5 Nereid.exe --uninstalled $(BANSHEE_DEV_OPTIONS))
+
 run-logged: check-bootstrap-env $(MO_FILES)
 	(cd bin; $(MONO) --debug $(BANSHEE_DEV_MONO_OPTIONS) Nereid.exe --debug --uninstalled $(BANSHEE_DEV_OPTIONS) | tee last-run-log)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]