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

Issue 40012: Stats for the renderers are all broken, because of this change:... (Closed)

Created:
11 years, 9 months ago by DaveMoore
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Stats for the renderers are all broken, because of this change: http://src.chromium.org/viewvc/chrome/trunk/src/chrome/app/chrome_dll_main.cc?r1=6627&r2=6626&pathrev=6627 line 236 We are appending the pid to the name of the shared memory object, which causes each renderer to get its own uninitialized copy of the stats counters, breaking the sharing. So then the about:stats code can't find the counters created and updated by these processes. This includes all the V8 counters and timers. BUG=8311

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M chrome/app/chrome_dll_main.cc View 1 2 3 chunks +13 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
DaveMoore
11 years, 9 months ago (2009-03-03 15:33:36 UTC) #1
pink (ping after 24hrs)
I'd like jrg to confirm that cleaning up shmem segments when the app goes away ...
11 years, 9 months ago (2009-03-03 15:45:10 UTC) #2
John Grabowski
On 2009/03/03 15:45:10, pink wrote: > I'd like jrg to confirm that cleaning up shmem ...
11 years, 9 months ago (2009-03-03 19:11:21 UTC) #3
John Grabowski
On 2009/03/03 15:45:10, pink wrote: > I'd like jrg to confirm that cleaning up shmem ...
11 years, 9 months ago (2009-03-03 19:12:19 UTC) #4
John Grabowski
> On Tue, Mar 3, 2009 at 11:15 AM, Mike Pinkerton <pinkerton@chromium.org> wrote: > The ...
11 years, 9 months ago (2009-03-03 19:21:06 UTC) #5
DaveMoore
I've taken the most direct approach to get the counters working under Windows again. Instead ...
11 years, 9 months ago (2009-03-05 11:11:41 UTC) #6
John Grabowski
11 years, 9 months ago (2009-03-05 18:04:00 UTC) #7
> I've taken the most direct approach to get the counters working under Windows
> again. Instead of using the current pid as part of the name I use the
browser's
> pid. This should avoid the corruption problem as well as ensure that if you
have
> multiple copies of Chrome running they won't share their stats counters.

Seems like a good idea. 

> Since Windows doesn't need the Delete() and I can't test Mac I've left the
rest
> as is. If we're leaking the share files a separate bug should be created for
> that.

Dave, you absolutely can test Mac (and Linux).  Make the change, write a unit
test, then upload to the try server.  In general, ignoring non-Windows will be
problematic.

LGTM for checkin, but be sure to file the bug.

Powered by Google App Engine
This is Rietveld 408576698