diff options
author | Aurelien Gateau <aurelien.gateau@canonical.com> | 2010-02-05 09:59:30 -0800 |
---|---|---|
committer | Aurelien Gateau <aurelien.gateau@canonical.com> | 2010-02-05 09:59:30 -0800 |
commit | afa6cc0016f3976e607c9bed5860ec76e2017763 (patch) | |
tree | 2180e3c7887f3ee8bcc6155f387a8457afbba4a2 /tools/README.dbusmenu-bench | |
parent | 474c074b760a92e07d0f91f0358218ddb3557145 (diff) | |
download | libdbusmenu-afa6cc0016f3976e607c9bed5860ec76e2017763.tar.gz libdbusmenu-afa6cc0016f3976e607c9bed5860ec76e2017763.tar.bz2 libdbusmenu-afa6cc0016f3976e607c9bed5860ec76e2017763.zip |
Documentation for dbusmenu-bench
Diffstat (limited to 'tools/README.dbusmenu-bench')
-rw-r--r-- | tools/README.dbusmenu-bench | 27 |
1 files changed, 27 insertions, 0 deletions
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 </path/to/JSON/file> + +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. |