Use gnome-shell-perf-helper to control windows during perf tests

* Run gnome-shell-perf-helper during performance tests
* Use MUTTER_WM_CLASS_FILTER to omit all other windows
* Add new Scripting methods: createTestWindow,
  waitTestWindows, destroyTestWindows
* Create a single 640x480 test window for testing overview
  animation performance.

https://bugzilla.gnome.org/show_bug.cgi?id=644265
This commit is contained in:
Owen W. Taylor
2011-03-08 18:48:07 -05:00
parent c6a2814881
commit 821583acae
3 changed files with 138 additions and 0 deletions

View File

@ -38,6 +38,10 @@ function run() {
Scripting.scriptEvent('overviewShowDone');
});
Scripting.destroyTestWindows();
Scripting.createTestWindow(640, 480, false, false);
Scripting.waitTestWindows();
yield Scripting.sleep(1000);
yield Scripting.waitLeisure();
for (let i = 0; i < 2; i++) {