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

Issue 2826123004: Use faster, but less information methods to calculate memory dumps on macOS. (Closed)

Created:
3 years, 8 months ago by erikchen
Modified:
3 years, 8 months ago
CC:
chromium-reviews, tracing+reviews_chromium.org, wfh+watch_chromium.org, danakj+watch_chromium.org, mac-reviews_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use faster, but less information methods to calculate memory dumps on macOS. Switch to use mach_vm_region(TOP_INFO) and mach_vm_region(BASIC_INFO) instead of mach_vm_region_recurse(). While the latter provides more information, both on submaps and on swapped/clean pages, it's two order of magnitudes slower. Attempting to take a memory dump with ~50 renderer renderers my machine unusable for over a minute. BUG=713481 Review-Url: https://codereview.chromium.org/2826123004 Cr-Commit-Position: refs/heads/master@{#466417} Committed: https://chromium.googlesource.com/chromium/src/+/12531f29074985a71e18f60a2e8ea79b4f24314c

Patch Set 1 #

Patch Set 2 : fix errors. #

Patch Set 3 : minor clean up #

Patch Set 4 : fix ios compile error. #

Total comments: 12

Patch Set 5 : comments form mark, primiano. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -98 lines) Patch
M base/process/process_metrics.h View 1 2 3 2 chunks +40 lines, -0 lines 0 comments Download
M base/process/process_metrics_mac.cc View 1 2 3 4 4 chunks +56 lines, -57 lines 0 comments Download
M components/tracing/common/process_metrics_memory_dump_provider.cc View 1 2 3 4 4 chunks +33 lines, -41 lines 0 comments Download

Messages

Total messages: 31 (24 generated)
erikchen
primiano, mark: Please review.
3 years, 8 months ago (2017-04-21 00:57:09 UTC) #21
Primiano Tucci (use gerrit)
components/tracing LGTM https://codereview.chromium.org/2826123004/diff/60001/components/tracing/common/process_metrics_memory_dump_provider.cc File components/tracing/common/process_metrics_memory_dump_provider.cc (right): https://codereview.chromium.org/2826123004/diff/60001/components/tracing/common/process_metrics_memory_dump_provider.cc#newcode461 components/tracing/common/process_metrics_memory_dump_provider.cc:461: // syscalls that craws every single page ...
3 years, 8 months ago (2017-04-21 11:36:31 UTC) #22
Mark Mentovai
LGTM otherwise https://codereview.chromium.org/2826123004/diff/60001/base/process/process_metrics.h File base/process/process_metrics.h (right): https://codereview.chromium.org/2826123004/diff/60001/base/process/process_metrics.h#newcode485 base/process/process_metrics.h:485: #if defined(OS_MACOSX) && !defined(OS_IOS) If you need ...
3 years, 8 months ago (2017-04-21 12:33:52 UTC) #23
erikchen
https://codereview.chromium.org/2826123004/diff/60001/base/process/process_metrics_mac.cc File base/process/process_metrics_mac.cc (right): https://codereview.chromium.org/2826123004/diff/60001/base/process/process_metrics_mac.cc#newcode147 base/process/process_metrics_mac.cc:147: base::CheckedNumeric<mach_vm_address_t> numeric(address); On 2017/04/21 12:33:51, Mark Mentovai wrote: > ...
3 years, 8 months ago (2017-04-21 18:20:25 UTC) #24
erikchen
https://codereview.chromium.org/2826123004/diff/60001/base/process/process_metrics.h File base/process/process_metrics.h (right): https://codereview.chromium.org/2826123004/diff/60001/base/process/process_metrics.h#newcode485 base/process/process_metrics.h:485: #if defined(OS_MACOSX) && !defined(OS_IOS) On 2017/04/21 12:33:51, Mark Mentovai ...
3 years, 8 months ago (2017-04-21 18:20:59 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2826123004/80001
3 years, 8 months ago (2017-04-21 18:21:36 UTC) #28
commit-bot: I haz the power
3 years, 8 months ago (2017-04-21 19:49:08 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/12531f29074985a71e18f60a2e8e...

Powered by Google App Engine
This is Rietveld 408576698