Closed
Bug 1367919
Opened 7 years ago
Closed 7 years ago
Add tracking for data allocation calls in WebGL
Categories
(Core :: Graphics: CanvasWebGL, enhancement, P1)
Core
Graphics: CanvasWebGL
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: svargas, Assigned: svargas)
References
Details
(Whiteboard: gfx-noted)
Attachments
(1 file, 5 obsolete files)
No description provided.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → svargas
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8871510 -
Flags: review?(jgilbert)
Assignee | ||
Comment 2•7 years ago
|
||
Rebased patch to be independent of other changes (the webgl.max -> webgl.perf.max rename).
Attachment #8871510 -
Attachment is obsolete: true
Attachment #8871510 -
Flags: review?(jgilbert)
Attachment #8871940 -
Flags: review?(jgilbert)
Assignee | ||
Comment 3•7 years ago
|
||
Attachment #8871940 -
Attachment is obsolete: true
Attachment #8871940 -
Flags: review?(jgilbert)
Comment 4•7 years ago
|
||
Comment on attachment 8871958 [details] [diff] [review] 0001-Bug-1367919-Add-tracking-for-data-allocation-calls-i.patch Review of attachment 8871958 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/canvas/WebGLBuffer.cpp @@ +153,4 @@ > } > } else { > gl->fBufferData(target, size, uploadData, usage); > + mContext->OnDataAllocCall(); Why not put this below, outside the if/else, so we only need to write it once? ::: dom/canvas/WebGLContext.cpp @@ -932,4 @@ > mBackbufferNeedsClear = true; > > gl->ResetSyncCallCount("Existing WebGLContext resized."); > - Looks like you accidentally removed a line here. @@ +1596,5 @@ > + > +void > +WebGLContext::OnDataAllocCall() const > +{ > + mDataAllocGLCallCount++; Move this to the header for inlining. @@ +1602,5 @@ > + > +uint64_t > +WebGLContext::GetNumGLDataAllocCalls() const > +{ > + return mDataAllocGLCallCount; Move this to the header for inlining. @@ +1610,5 @@ > +WebGLContext::OnEndOfFrame() const > +{ > + if (gfxPrefs::WebGLSpewFrameAllocs()) { > + GeneratePerfWarning("[webgl.perf.spew-frame-allocs] %" PRIu64 " Data allocations this frame.\n", > + mDataAllocGLCallCount); Align this with the previous line's `(`. @@ +1646,3 @@ > > mShouldPresent = false; > gl->ResetSyncCallCount("WebGLContext PresentScreenBuffer"); ResetSyncCallCount should go in OnEndOfFrame.
Attachment #8871958 -
Flags: review-
Updated•7 years ago
|
Flags: needinfo?(svargas)
Updated•7 years ago
|
Priority: -- → P1
Whiteboard: gfx-noted
Assignee | ||
Comment 5•7 years ago
|
||
Attachment #8871958 -
Attachment is obsolete: true
Flags: needinfo?(svargas)
Attachment #8873157 -
Flags: review?(jgilbert)
Comment 6•7 years ago
|
||
Comment on attachment 8873157 [details] [diff] [review] 0001-Bug-1367919-Add-tracking-for-data-allocation-calls-i.patch Review of attachment 8873157 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/canvas/WebGLBuffer.cpp @@ +142,4 @@ > > gl::GLContext::LocalErrorScope errorScope(*gl); > gl->fBufferData(target, size, uploadData, usage); > + Revert this newline. ::: dom/canvas/WebGLContext.cpp @@ +931,4 @@ > mResetLayer = true; > mBackbufferNeedsClear = true; > > + gl->ResetSyncCallCount("Existing WebGLContext resized."); Move this to the proper patch. I think it's from the other bug. @@ +1595,5 @@ > +void > +WebGLContext::OnEndOfFrame() const > +{ > + if (gfxPrefs::WebGLSpewFrameAllocs()) { > + GeneratePerfWarning("[webgl.perf.spew-frame-allocs] %" PRIu64 " Data allocations this frame.\n", s/Data/data/ No ending newlines for Generate*Warning(). @@ +1599,5 @@ > + GeneratePerfWarning("[webgl.perf.spew-frame-allocs] %" PRIu64 " Data allocations this frame.\n", > + mDataAllocGLCallCount); > + } > + mDataAllocGLCallCount = 0; > + gl->ResetSyncCallCount("WebGLContext OnEndOfFrame"); Move this to the proper patch. I think it's from the other bug.
Attachment #8873157 -
Flags: review?(jgilbert) → review-
Assignee | ||
Comment 7•7 years ago
|
||
Attachment #8873157 -
Attachment is obsolete: true
Attachment #8878727 -
Flags: review?(jgilbert)
Updated•7 years ago
|
Attachment #8878727 -
Flags: review?(jgilbert) → review+
Assignee | ||
Comment 8•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=8947ca6f473bdcf6697f8953bd4be3dad0c28b23
Assignee | ||
Comment 10•7 years ago
|
||
Applies cleanly to mozilla-inbound
Attachment #8878727 -
Attachment is obsolete: true
Flags: needinfo?(svargas)
Assignee | ||
Comment 11•7 years ago
|
||
New Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=93b438720a7b8878f11b235ded9f53d72e2c7017
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 12•7 years ago
|
||
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/db8a4903fd27 Add tracking for data allocation calls in WebGL. r=jgilbert
Keywords: checkin-needed
Comment 13•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/db8a4903fd27
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•