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

Issue 75031: Support for showing memory usage of 64-bit IE in a 32-bit Chromium process.... (Closed)

Created:
11 years, 8 months ago by tkent
Modified:
9 years, 7 months ago
Reviewers:
Mike Belshe
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Support for showing memory usage of 64-bit IE in a 32-bit Chromium process. Note that the product version won't be shown and the virtual memory columns will be "N/A". * memory_details.{cc,h} Switch to CreateToolhelp32Snapshot()/Process32First()/Process32Next() from EnumProcess() because EnumProcess() in a 32-bit process doesn't enumerate 64-bit processes. Note: GetModuleFileNameEx() for a 64-bit process fails. * GetCommittedKBytes() in process_util_win.cc Don't hung up for a 64-bit process. It sets zeros as results for a 64-bit process. * about_memory.html If a value is zero, shows "N/A". BUG=191 TEST=manual check for the following cases: about:memory had no behavior change in 32-bit Windows. about:memory had no behavior change in 64-bit Windows if 64-bit IE was not running. about:memory showed "IE (64bit)" row in 64-bit Windows if 64-bit IE was running. about:memory showed both of "IE" and "IE (64bit)" rows in 64-bit Windows if 64-bit IE and 32-bit IE were running.

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -45 lines) Patch
M base/process_util_win.cc View 1 2 3 1 chunk +23 lines, -14 lines 0 comments Download
M chrome/browser/memory_details.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/memory_details.cc View 1 2 3 5 chunks +39 lines, -31 lines 0 comments Download
M chrome/browser/resources/about_memory.html View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
tkent_google.com
Would you take a look at this please?
11 years, 8 months ago (2009-04-16 07:15:53 UTC) #1
tkent_google.com
11 years, 8 months ago (2009-04-20 02:02:04 UTC) #2
Mike Belshe
Thanks for fixing this! Mostly looks good - just a couple of questions about the ...
11 years, 8 months ago (2009-04-21 18:37:42 UTC) #3
tkent_google.com
Thank you for reviewing. http://codereview.chromium.org/75031/diff/1008/1009 File base/process_util_win.cc (right): http://codereview.chromium.org/75031/diff/1008/1009#newcode439 Line 439: MEMORY_BASIC_INFORMATION mbi = {0}; ...
11 years, 8 months ago (2009-04-22 17:27:24 UTC) #4
Mike Belshe
11 years, 7 months ago (2009-05-22 20:12:14 UTC) #5
sorry for leaving this hanging.

LGTM

Powered by Google App Engine
This is Rietveld 408576698