Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Issue 6877101: Replaced std::string argument storage in gpu_trace_event with faster TraceAnyType (Closed)

Created:
9 years, 8 months ago by jbates
Modified:
9 years, 6 months ago
Reviewers:
scheib, nduca
CC:
chromium-reviews, jam, apatrick_chromium, jbauman
Visibility:
Public.

Description

Replaced std::string argument storage in gpu_trace_event with faster TraceAnyType BUG=80172 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=82620

Patch Set 1 #

Total comments: 2

Patch Set 2 : scheib feedback #

Total comments: 10

Patch Set 3 : updated #

Patch Set 4 : win #

Patch Set 5 : build #

Patch Set 6 : build #

Patch Set 7 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -16 lines) Patch
M content/renderer/renderer_gl_context.cc View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/common/gpu_trace_event.h View 1 2 3 4 5 6 4 chunks +114 lines, -3 lines 0 comments Download
M gpu/common/gpu_trace_event.cc View 1 2 3 4 5 4 chunks +89 lines, -11 lines 0 comments Download
M webkit/glue/webkitclient_impl.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
jbates
9 years, 8 months ago (2011-04-20 22:54:23 UTC) #1
jbates
(added scheib and jbauman)
9 years, 8 months ago (2011-04-21 16:21:38 UTC) #2
scheib
I like where it's going. ;) Look into Value - values.s to see if we ...
9 years, 8 months ago (2011-04-21 16:44:35 UTC) #3
jbates
Added comment to explain why base::Value is not used. http://codereview.chromium.org/6877101/diff/1/gpu/common/gpu_trace_event.cc File gpu/common/gpu_trace_event.cc (right): http://codereview.chromium.org/6877101/diff/1/gpu/common/gpu_trace_event.cc#newcode103 gpu/common/gpu_trace_event.cc:103: ...
9 years, 8 months ago (2011-04-21 21:11:50 UTC) #4
scheib
LGTM
9 years, 8 months ago (2011-04-21 21:41:39 UTC) #5
nduca
can you also modify webkit/glue/webkitclient_impl.cc to use this new magic? http://codereview.chromium.org/6877101/diff/1005/gpu/common/gpu_trace_event.cc File gpu/common/gpu_trace_event.cc (left): http://codereview.chromium.org/6877101/diff/1005/gpu/common/gpu_trace_event.cc#oldcode110 ...
9 years, 8 months ago (2011-04-21 22:15:43 UTC) #6
nduca
LGTM less nits
9 years, 8 months ago (2011-04-21 22:15:52 UTC) #7
scheib
Right, so I'm just discovering a few things we were failing on to have strictly ...
9 years, 8 months ago (2011-04-21 22:30:23 UTC) #8
jbates
9 years, 8 months ago (2011-04-21 23:57:53 UTC) #9
Thanks guys. I think I fixed the JSON format as well.

http://codereview.chromium.org/6877101/diff/1005/gpu/common/gpu_trace_event.cc
File gpu/common/gpu_trace_event.cc (left):

http://codereview.chromium.org/6877101/diff/1005/gpu/common/gpu_trace_event.c...
gpu/common/gpu_trace_event.cc:110: *out += argNames[i];
On 2011/04/21 22:15:44, nduca wrote:
> check with @scheib/bauman --- might need to quote the argName

Done.

http://codereview.chromium.org/6877101/diff/1005/gpu/common/gpu_trace_event.cc
File gpu/common/gpu_trace_event.cc (right):

http://codereview.chromium.org/6877101/diff/1005/gpu/common/gpu_trace_event.c...
gpu/common/gpu_trace_event.cc:104: *out += "'";
On 2011/04/21 22:15:44, nduca wrote:
> double quotes

Done.

http://codereview.chromium.org/6877101/diff/1005/gpu/common/gpu_trace_event.c...
gpu/common/gpu_trace_event.cc:112: *out += "''";
On 2011/04/21 22:15:44, nduca wrote:
> double quotes

Done.

http://codereview.chromium.org/6877101/diff/1005/gpu/common/gpu_trace_event.h
File gpu/common/gpu_trace_event.h (right):

http://codereview.chromium.org/6877101/diff/1005/gpu/common/gpu_trace_event.h...
gpu/common/gpu_trace_event.h:186: class TraceAnyType {
On 2011/04/21 22:15:44, nduca wrote:
> TraceVar or TraceVariadic?
> 
> Very similar to PP_Var (chrome/ppapi)

Done.

http://codereview.chromium.org/6877101/diff/1005/gpu/common/gpu_trace_event.h...
gpu/common/gpu_trace_event.h:190: BOOLEAN,
On 2011/04/21 22:15:44, nduca wrote:
> /me wonders if we usually prefix with TYPE_? pp_var and base/values.h might be
> good reference points. And, sorry if you've already normalized to a
convention..
> :)

Done.

Powered by Google App Engine
This is Rietveld 408576698