diff options
author | Ted Gould <ted@gould.cx> | 2010-02-05 11:00:07 -0800 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-02-05 11:00:07 -0800 |
commit | c77ed1ccc280c56949b0a5a3f2d8d08bae498d29 (patch) | |
tree | 4b8cc5313c3c6828565df8efad57ab85d53f4d3a /tools/README.dbusmenu-bench | |
parent | a61a7ba8cc024d3d75f73e336ba83128631d3019 (diff) | |
parent | f3a13c8b0be55927b8b91ff37ba922ba323b44b7 (diff) | |
download | libdbusmenu-c77ed1ccc280c56949b0a5a3f2d8d08bae498d29.tar.gz libdbusmenu-c77ed1ccc280c56949b0a5a3f2d8d08bae498d29.tar.bz2 libdbusmenu-c77ed1ccc280c56949b0a5a3f2d8d08bae498d29.zip |
* Upstrem Merge
* Fixing handing of root IDs being zero
* Handling syncing of properties when reusing items
* Shipping new JSON files and READMEs for testing.
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..91045df --- /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 /usr/share/libdbusmenu/json/test-gtk-label.json + +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. |