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 619521 - [perf] replace frame count with accurately computed frame rate
[perf] replace frame count with accurately computed frame rate
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: 2010-05-24 14:32 UTC by Owen Taylor
Modified: 2010-05-26 19:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[perf] replace frame count with accurately computed frame rate (5.31 KB, patch)
2010-05-24 14:32 UTC, Owen Taylor
committed Details | Review

Description Owen Taylor 2010-05-24 14:32:00 UTC
Compute a frame rate for the period between:

 - User sees first frame of overview animation
 - User sees fully zoomed-out overview

And replace the current Frames count metrics with this. The
previous frame count metrics were actually over the period from
the start of the animation until the window labels finished
animating in; here we are careful to look at a more restricted
period.
Comment 1 Owen Taylor 2010-05-24 14:32:02 UTC
Created attachment 161868 [details] [review]
[perf] replace frame count with accurately computed frame rate
Comment 2 drago01 2010-05-26 14:57:42 UTC
Review of attachment 161868 [details] [review]:

Looks good and the numbers reported look sane.

::: js/perf/core.js
@@ +17,1 @@
       units: "frames" },

Well fps means "frames per second" so the units should be that and not "frames".

@@ +23,1 @@
       units: "us" },

"us" is even worse than "frames" ;)

@@ +121,3 @@
+}
+
+function glx_swapComplete(time, swapTime) {

Am I right to assume that this depends on #619516 ?
Comment 3 Owen Taylor 2010-05-26 15:08:05 UTC
(In reply to comment #2)
> Review of attachment 161868 [details] [review]:
> 
> Looks good and the numbers reported look sane.
> 
> ::: js/perf/core.js
> @@ +17,1 @@
>        units: "frames" },
> 
> Well fps means "frames per second" so the units should be that and not
> "frames".

Yeah, it should be "frames / s" - good catch.

> @@ +23,1 @@
>        units: "us" },
> 
> "us" is even worse than "frames" ;)

Yep.
 
> @@ +121,3 @@
> +}
> +
> +function glx_swapComplete(time, swapTime) {
> 
> Am I right to assume that this depends on #619516 ?

Yes, it does. (Well, not a hard dep since there's a fallback since systems may not report glx.swapComplete, but conceptually it does, and it does to get the best numbers.)
Comment 4 Owen Taylor 2010-05-26 19:39:16 UTC
Attachment 161868 [details] pushed as 15dd116 - [perf] replace frame count with accurately computed frame rate