Closed Bug 788400 Opened 12 years ago Closed 12 years ago

Correlate samples with video frames

Categories

(Core :: Gecko Profiler, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: BenWa, Assigned: BenWa)

References

Details

Attachments

(3 files, 2 obsolete files)

Attached patch Part 1: Add frame counter (obsolete) — Splinter Review
By adding frame count markers in the profile and tagging frames with a number we can correlate samples with video captures.
Depends on: 748872, 773428
Attached image screenshot
Assignee: nobody → bgirard
Status: NEW → ASSIGNED
Attachment #658505 - Flags: review?(ehsan)
Attachment #658372 - Flags: review?(ehsan)
Comment on attachment 658372 [details] [diff] [review]
Part 1: Add frame counter

Actually I should get a GFX peer to review this.
Attachment #658372 - Flags: review?(ehsan) → review?(jmuizelaar)
Comment on attachment 658372 [details] [diff] [review]
Part 1: Add frame counter

Review of attachment 658372 [details] [diff] [review]:
-----------------------------------------------------------------

::: gfx/layers/opengl/LayerManagerOGL.cpp
@@ +537,5 @@
> +      context->fClearColor(0.0, 0.0, 0.0, 0.0);
> +    } else {
> +      context->fClearColor(1.0, 1.0, 1.0, 0.0);
> +    }
> +    context->fClear(LOCAL_GL_COLOR_BUFFER_BIT);

Add a comment about how this should probably be implemented with a single draw instead of multiple ones.
Attachment #658372 - Flags: review?(jmuizelaar) → review+
Attachment #658505 - Flags: review?(ehsan) → review+
(In reply to Jeff Muizelaar [:jrmuizel] from comment #4)
> Comment on attachment 658372 [details] [diff] [review]
> Part 1: Add frame counter
> 
> Review of attachment 658372 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> ::: gfx/layers/opengl/LayerManagerOGL.cpp
> @@ +537,5 @@
> > +      context->fClearColor(0.0, 0.0, 0.0, 0.0);
> > +    } else {
> > +      context->fClearColor(1.0, 1.0, 1.0, 0.0);
> > +    }
> > +    context->fClear(LOCAL_GL_COLOR_BUFFER_BIT);
> 
> Add a comment about how this should probably be implemented with a single
> draw instead of multiple ones.

+    // We should do this using a single draw call
+    // instead of 16 glClear()
Attached patch Part 1: Add frame counter (obsolete) — Splinter Review
Attachment #658372 - Attachment is obsolete: true
Attachment #658603 - Flags: review+
Attachment #658603 - Attachment is obsolete: true
Attachment #658626 - Flags: review+
Attachment #658626 - Attachment is patch: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: