[anjuta/sdb-core-trans] symbol-db: added a script to benchmark easily.
- From: Massimo Cora' <mcora src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta/sdb-core-trans] symbol-db: added a script to benchmark easily.
- Date: Tue, 22 Jun 2010 23:06:44 +0000 (UTC)
commit 228cb685b72a2e17b901afa4b7a104cf53c0088a
Author: Massimo Corà <mcora src gnome org>
Date: Wed Jun 23 01:04:50 2010 +0200
symbol-db: added a script to benchmark easily.
plugins/symbol-db/benchmark/README | 14 ++++++++++++++
plugins/symbol-db/benchmark/populate-test-dir.sh | 8 ++++++++
plugins/symbol-db/symbol-db-engine-priv.h | 2 +-
3 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/plugins/symbol-db/benchmark/README b/plugins/symbol-db/benchmark/README
new file mode 100644
index 0000000..610cd4c
--- /dev/null
+++ b/plugins/symbol-db/benchmark/README
@@ -0,0 +1,14 @@
+To have good performances tests you can run:
+
+./populate-test-dir.sh
+
+and then
+
+valgrind --tool=callgrind --collect-systime=yes \
+ --callgrind-out-file=callgrind.out ./.libs/benchmark test-dir
+
+
+The former creates ./test-dir with all the sources of Anjuta and populate a db on
+that directory.
+The latter launches callgrind which enumerates a lot of data of the execution:
+functions call, timings, number of calls, etc.
diff --git a/plugins/symbol-db/benchmark/populate-test-dir.sh b/plugins/symbol-db/benchmark/populate-test-dir.sh
new file mode 100755
index 0000000..df2fbda
--- /dev/null
+++ b/plugins/symbol-db/benchmark/populate-test-dir.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+TEST_DIR=./test-dir
+rm -fr $TEST_DIR
+mkdir $TEST_DIR
+for i in `find ../../../ -name "*.[c|h]"`; do
+cp $i $TEST_DIR
+done;
+
diff --git a/plugins/symbol-db/symbol-db-engine-priv.h b/plugins/symbol-db/symbol-db-engine-priv.h
index a24f9dc..a3071b5 100644
--- a/plugins/symbol-db/symbol-db-engine-priv.h
+++ b/plugins/symbol-db/symbol-db-engine-priv.h
@@ -55,7 +55,7 @@
#define DUMMY_VOID_STRING ""
#define MP_VOID_STRING "-"
-#define BATCH_SYMBOL_NUMBER 5000
+#define BATCH_SYMBOL_NUMBER 35000
#define MP_RESET_OBJ_STR(gvalue) \
g_value_set_static_string (gvalue, DUMMY_VOID_STRING);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]