From afa6cc0016f3976e607c9bed5860ec76e2017763 Mon Sep 17 00:00:00 2001 From: Aurelien Gateau Date: Fri, 5 Feb 2010 09:59:30 -0800 Subject: Documentation for dbusmenu-bench --- tools/README.dbusmenu-bench | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tools/README.dbusmenu-bench (limited to 'tools') diff --git a/tools/README.dbusmenu-bench b/tools/README.dbusmenu-bench new file mode 100644 index 0000000..47c5b88 --- /dev/null +++ b/tools/README.dbusmenu-bench @@ -0,0 +1,27 @@ +# Introduction + +dbusmenu-bench measures the time it takes to call various DBusMenu methods and +print the results on stdout. A test dbusmenu application must be started before +running dbusmenu-bench. + +A GLib test application is included in this archive. libdbusmenu-qt provides an +equivalent Qt test application. They both can load the same menu hierarchy from +a JSON file. + +# Using it + +1. Start dbusmenu-testapp: + + dbusmenu-testapp + +2. Run dbusmenu-bench + + dbusmenu-bench --count 1000 + +1000 is the number of times each DBusMenu method is called. Calling them 1000 +times helps getting meaningful average values. + +3. Stop dbusmenu-testapp + +For debugging purpose, you can also run dbusmenu-bench with the "--dump" +parameter, which will dump the output of the called methods. -- cgit v1.2.3 From dc7cfbd6e190e4bdc0393491f599a315ccb963d1 Mon Sep 17 00:00:00 2001 From: Aurelien Gateau Date: Fri, 5 Feb 2010 10:35:46 -0800 Subject: Install README file for dbusmenu-bench --- tools/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/Makefile.am b/tools/Makefile.am index eedfa29..77d6eef 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -16,4 +16,8 @@ dbusmenu_dumper_LDADD = \ ../libdbusmenu-glib/libdbusmenu-glib.la \ $(DBUSMENUGLIB_LIBS) -EXTRA_DIST = dbusmenu-bench +doc_DATA = README.dbusmenu-bench + +EXTRA_DIST = \ + $(doc_DATA) \ + dbusmenu-bench -- cgit v1.2.3 From 13e9606df07165627e9518bf7c30292a019124cf Mon Sep 17 00:00:00 2001 From: Aurelien Gateau Date: Fri, 5 Feb 2010 10:35:58 -0800 Subject: Install JSON file --- tools/README.dbusmenu-bench | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/README.dbusmenu-bench b/tools/README.dbusmenu-bench index 47c5b88..91045df 100644 --- a/tools/README.dbusmenu-bench +++ b/tools/README.dbusmenu-bench @@ -12,7 +12,7 @@ a JSON file. 1. Start dbusmenu-testapp: - dbusmenu-testapp + dbusmenu-testapp /usr/share/libdbusmenu/json/test-gtk-label.json 2. Run dbusmenu-bench -- cgit v1.2.3