Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(155)

Issue 6306090: Add GrMemoryPool and test (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by bsalomon
Modified:
12 years, 3 months ago
Reviewers:
reed1, TomH
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : update #

Total comments: 6

Patch Set 3 : Add bench, address Tom's comments #

Patch Set 4 : fixup bench comments #

Patch Set 5 : fixup bench comments #

Patch Set 6 : comment fix #

Patch Set 7 : add new bench case, make allocation count tracking be debug only #

Patch Set 8 : readd files, revert benchmain.cpp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+653 lines, -4 lines) Patch
A bench/GrMemoryPoolBench.cpp View 1 2 3 4 5 6 7 1 chunk +164 lines, -0 lines 0 comments Download
M bench/benchmain.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M gyp/bench.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M gyp/gpu.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M gyp/tests.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkInstCnt.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M include/gpu/GrTypes.h View 1 2 3 4 5 6 1 chunk +9 lines, -3 lines 0 comments Download
A src/gpu/GrMemoryPool.h View 1 2 3 4 5 6 7 1 chunk +79 lines, -0 lines 0 comments Download
A src/gpu/GrMemoryPool.cpp View 1 2 3 4 5 6 7 1 chunk +153 lines, -0 lines 0 comments Download
A tests/GrMemoryPoolTest.cpp View 1 2 3 4 5 6 7 1 chunk +239 lines, -0 lines 0 comments Download

Messages

Total messages: 5
bsalomon
This class is intended to be used to handle op new and delete for GrCustomStage. ...
12 years, 3 months ago (2012-06-15 14:39:54 UTC) #1
TomH
Can we get some idea of performance vs malloc? This looks like you have really ...
12 years, 3 months ago (2012-06-18 19:25:32 UTC) #2
bsalomon
I added two benchs. Both randomly alternate between deleting and allocating. One deletes in random ...
12 years, 3 months ago (2012-06-19 13:29:05 UTC) #3
TomH
On 2012/06/19 13:29:05, bsalomon wrote: > I added two benchs. Both randomly alternate between deleting ...
12 years, 3 months ago (2012-06-19 13:36:32 UTC) #4
bsalomon
12 years, 3 months ago (2012-06-19 21:14:35 UTC) #5
On 2012/06/19 13:36:32, TomH wrote:
> On 2012/06/19 13:29:05, bsalomon wrote:
> > I added two benchs. Both randomly alternate between deleting and allocating.
> One
> > deletes in random order and the other deletes in stack order. On my windows
> > machine the random order is 9.5x std new/delete and the stack order is 4.5x.
> 
> Not as good as we hoped, but hopefully it'll do. (Didn't you get a preliminary
> estimate > 10% slowdown with system malloc?)
> 
> Nit: can we also get a sense of the % memory waste in those two benchmarks?
> 
> LGTM

Checked in with a third bench (deletes are in queue order) in r4282. I'll
consider adding memory consumption stats in the next go-round on this.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b