[banshee] Add make run-trace target to trace all method calls



commit fb4f60f6718a9d802afc26e14d33d3b20ff380b4
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Fri Dec 11 12:51:13 2009 -0800

    Add make run-trace target to trace all method calls
    
    Traces all calls for all methods defined in assemblies in bin/ except
    Mono.Data.Sqlite

 Makefile.am |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 1c3e24b..16e612b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -52,6 +52,11 @@ run-logged: $(MO_FILES)
 run-perf: run-logged
 	extras/perf-analyze-log bin/last-run-log
 
+run-trace: $(MO_FILES)
+	(cd bin; $(MONO) \
+		--trace=$$(find . -name "*dll" | sed 's/\.\///' | sed 's/\.dll//' | sed 's/Mono.Data.Sqlite//' | sort | tr "\n" , | sed 's/,$$//') \
+		Nereid.exe --uninstalled $(BANSHEE_DEV_OPTIONS) > ../banshee.trace)
+
 gdb:
 	@pushd bin; \
 	gdb mono --eval-command="handle SIGXCPU SIG35 SIGPWR nostop noprint" --eval-command="b g_return_if_fail_warning" --eval-command="r --debug Nereid.exe --debug --uninstalled"; \



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