After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 734610 - Add a special background to use for performance testing
Add a special background to use for performance testing
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2014-08-11 12:39 UTC by Owen Taylor
Modified: 2014-08-18 14:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add a special background to use for performance testing (7.26 KB, patch)
2014-08-11 12:40 UTC, Owen Taylor
committed Details | Review

Description Owen Taylor 2014-08-11 12:39:58 UTC
Performance testing was producing inconsistent values at different
times in the day since the GNOME default background is animated and
sometimes has a single layer, and sometimes two blended layers.

So we have consistent numbers, install a simple animated background
with GNOME Shell that has 40-year long transition ending in 2030,a
and set an environment variable in gnome-shell-perf-tool so that the
background is override with that background. (The background depends
on files installed by gnome-backgrounds; we assume that the person
running performance tests is doing so within the scope of a full
GNOME install.)
Comment 1 Owen Taylor 2014-08-11 12:40:03 UTC
Created attachment 283092 [details] [review]
Add a special background to use for performance testing
Comment 2 drago01 2014-08-15 19:23:20 UTC
Review of attachment 283092 [details] [review]:

::: data/perf-background.xml.in
@@ +5,3 @@
+     we want to make sure that also performs well; for that reason we ship
+     an "animated" background that animates super-slowly to use during
+     performance tests; it will be in the blended state until 2030. -->

That makes sense. I was about to ask "why not use a static image".

::: src/gnome-shell-perf-tool.in
@@ +84,3 @@
 
+    # A fixed background image
+    env['SHELL_BACKGROUND_IMAGE'] = '@pkgdatadir@/perf-background.xml'

Shouldn't we unset this in restore_shell() ?
Comment 3 Owen Taylor 2014-08-18 14:56:14 UTC
Pushed with fix to comment.

Attachment 283092 [details] pushed as 20fc973 - Add a special background to use for performance testing
Comment 4 Owen Taylor 2014-08-18 14:56:28 UTC
Review of attachment 283092 [details] [review]:

::: data/perf-background.xml.in
@@ +5,3 @@
+     we want to make sure that also performs well; for that reason we ship
+     an "animated" background that animates super-slowly to use during
+     performance tests; it will be in the blended state until 2030. -->

Of course, this was meant to say 'for much of the day' not 'for much of the data'

::: src/gnome-shell-perf-tool.in
@@ +84,3 @@
 
+    # A fixed background image
+    env['SHELL_BACKGROUND_IMAGE'] = '@pkgdatadir@/perf-background.xml'

No, the unset of MUTTER_WM_CLASS_FILTER shouldn't be there either - we only modify a copy of the environment, and pass that copy when we're exec'ing the shell process to run the tests.