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

Issue 558313002: Add a MappedMemory interface to TaskMemory and use it in MachOImageSymbolTableReader (Closed)

Created:
6 years, 3 months ago by Mark Mentovai
Modified:
6 years, 3 months ago
Reviewers:
Robert Sesek
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Project:
crashpad
Visibility:
Public.

Description

Add a MappedMemory interface to TaskMemory and use it in MachOImageSymbolTableReader. This results in a speed boost for MachOImageSymbolTableReader because it’s able to read the entire string table in one operation, rather than reading each string from the remote process individually. Copying is also reduced. In a debug-mode build on my laptop, util_test MachOImageReader.* has improved from ~1400ms to ~1000ms. TEST=util_test TaskMemory.*:MachOImageReader.* R=rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/0869b3e86d704fc55d621a8d3659e40dba370c27

Patch Set 1 #

Total comments: 12

Patch Set 2 : Address review feedback #

Patch Set 3 : Use vm_region_64() instead of mach_vm_region() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -21 lines) Patch
M util/mac/mach_o_image_symbol_table_reader.cc View 2 chunks +11 lines, -4 lines 0 comments Download
M util/mach/task_memory.h View 1 4 chunks +82 lines, -1 line 0 comments Download
M util/mach/task_memory.cc View 1 3 chunks +62 lines, -16 lines 0 comments Download
M util/mach/task_memory_test.cc View 1 2 5 chunks +168 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Mark Mentovai
6 years, 3 months ago (2014-09-10 19:35:59 UTC) #2
Robert Sesek
https://codereview.chromium.org/558313002/diff/1/util/mac/mach_o_image_symbol_table_reader.cc File util/mac/mach_o_image_symbol_table_reader.cc (right): https://codereview.chromium.org/558313002/diff/1/util/mac/mach_o_image_symbol_table_reader.cc#newcode135 util/mac/mach_o_image_symbol_table_reader.cc:135: if (!string_table->ReadCString(symbol.n_strx, &name)) { This doesn't take into the ...
6 years, 3 months ago (2014-09-10 21:37:41 UTC) #3
Mark Mentovai
https://codereview.chromium.org/558313002/diff/1/util/mac/mach_o_image_symbol_table_reader.cc File util/mac/mach_o_image_symbol_table_reader.cc (right): https://codereview.chromium.org/558313002/diff/1/util/mac/mach_o_image_symbol_table_reader.cc#newcode135 util/mac/mach_o_image_symbol_table_reader.cc:135: if (!string_table->ReadCString(symbol.n_strx, &name)) { rsesek wrote: > This doesn't ...
6 years, 3 months ago (2014-09-10 22:16:56 UTC) #4
Robert Sesek
LGTM https://codereview.chromium.org/558313002/diff/1/util/mach/task_memory.h File util/mach/task_memory.h (right): https://codereview.chromium.org/558313002/diff/1/util/mach/task_memory.h#newcode64 util/mach/task_memory.h:64: //! This method will read contiguous memory until ...
6 years, 3 months ago (2014-09-11 18:42:35 UTC) #5
Mark Mentovai
6 years, 3 months ago (2014-09-11 19:10:18 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:30001) manually as 0869b3e (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698