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

Issue 1847543002: Expose a lower bound of malloc'd memory via heap statistics (Closed)

Created:
4 years, 8 months ago by jochen (gone - plz use gerrit)
Modified:
4 years, 8 months ago
CC:
oth, Paweł Hajdan Jr., rmcilroy, v8-reviews_googlegroups.com, Yang
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Expose a lower bound of malloc'd memory via heap statistics We expect that the majority of malloc'd memory held by V8 is allocated in Zone objects. Introduce an Allocator class that is used by Zones to manage memory, and allows for querying the current usage. BUG=none R=titzer@chromium.org,bmeurer@chromium.org,jarin@chromium.org LOG=n TBR=rossberg@chromium.org Committed: https://crrev.com/cb7aa79b1265b09e21a82d31d4c60470a4444fa5 Cr-Commit-Position: refs/heads/master@{#35196}

Patch Set 1 #

Patch Set 2 : updates #

Patch Set 3 : accounting allocator #

Patch Set 4 : updates #

Total comments: 3

Patch Set 5 : updates #

Total comments: 3

Patch Set 6 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -252 lines) Patch
M BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M include/v8.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 3 4 2 chunks +11 lines, -7 lines 0 comments Download
M src/background-parsing-task.cc View 1 chunk +1 line, -1 line 0 comments Download
A src/base/accounting-allocator.h View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
A src/base/accounting-allocator.cc View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M src/builtins.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/code-stubs.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/code-stubs-hydrogen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler.cc View 7 chunks +8 lines, -7 lines 0 comments Download
M src/compiler/graph-replay.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/graph-visualizer.cc View 1 2 4 chunks +10 lines, -5 lines 0 comments Download
M src/compiler/js-inlining.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/jump-threading.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/loop-analysis.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/loop-peeling.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/pipeline.cc View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M src/compiler/select-lowering.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/verifier.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 5 chunks +6 lines, -5 lines 0 comments Download
M src/compiler/zone-pool.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M src/compiler/zone-pool.cc View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M src/crankshaft/compilation-phase.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/lithium-allocator.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M src/debug/debug-scopes.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/debug/liveedit.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/deoptimizer.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/fast-accessor-assembler.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/gdb-jit.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/handles.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/interpreter/interpreter.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.h View 1 2 3 4 5 4 chunks +5 lines, -1 line 0 comments Download
M src/isolate.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M src/json-parser.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/parsing/parser.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/regexp/jsregexp.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/type-cache.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/wasm/ast-decoder.h View 1 2 3 2 chunks +14 lines, -10 lines 0 comments Download
M src/wasm/ast-decoder.cc View 1 2 3 2 chunks +11 lines, -9 lines 0 comments Download
M src/wasm/module-decoder.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/wasm/wasm-js.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/zone.h View 1 2 3 4 5 4 chunks +6 lines, -2 lines 0 comments Download
M src/zone.cc View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M test/cctest/cctest.h View 1 2 5 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/compiler/function-tester.h View 5 2 chunks +2 lines, -2 lines 0 comments Download
M test/cctest/compiler/test-instruction.cc View 1 2 5 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/compiler/test-jump-threading.cc View 1 2 5 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/compiler/test-linkage.cc View 5 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-loop-analysis.cc View 5 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/compiler/test-multiple-return.cc View 1 2 5 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/compiler/test-node.cc View 1 2 5 17 chunks +34 lines, -17 lines 0 comments Download
M test/cctest/compiler/test-run-native-calls.cc View 1 2 5 23 chunks +35 lines, -23 lines 0 comments Download
M test/cctest/interpreter/test-interpreter.cc View 5 5 chunks +5 lines, -5 lines 0 comments Download
M test/cctest/test-ast.cc View 1 2 5 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-bit-vector.cc View 1 2 5 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-field-type-tracking.cc View 5 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-liveedit.cc View 1 2 5 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 5 22 chunks +22 lines, -22 lines 0 comments Download
M test/cctest/test-regexp.cc View 5 27 chunks +27 lines, -27 lines 0 comments Download
M test/cctest/test-run-wasm-relocation-ia32.cc View 5 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-run-wasm-relocation-x87.cc View 5 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-types.cc View 5 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-unique.cc View 5 12 chunks +12 lines, -12 lines 0 comments Download
M test/cctest/wasm/test-run-wasm.cc View 1 2 5 3 chunks +5 lines, -3 lines 0 comments Download
M test/cctest/wasm/test-run-wasm-module.cc View 1 2 5 6 chunks +12 lines, -6 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 2 5 4 chunks +7 lines, -4 lines 0 comments Download
M test/fuzzer/parser.cc View 5 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/loop-peeling-unittest.cc View 5 1 chunk +1 line, -1 line 0 comments Download
M test/unittests/compiler/zone-pool-unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M test/unittests/test-utils.h View 1 2 5 2 chunks +4 lines, -2 lines 0 comments Download
M test/unittests/wasm/ast-decoder-unittest.cc View 1 2 3 6 chunks +15 lines, -6 lines 0 comments Download
M test/unittests/wasm/encoder-unittest.cc View 1 2 5 5 chunks +10 lines, -5 lines 0 comments Download
M test/unittests/wasm/module-decoder-unittest.cc View 1 2 5 1 chunk +2 lines, -1 line 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M tools/parser-shell.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
jochen (gone - plz use gerrit)
4 years, 8 months ago (2016-03-30 14:36:28 UTC) #1
jochen (gone - plz use gerrit)
ptal Instead of having the counter on the isolate, I'm introducing a separate class to ...
4 years, 8 months ago (2016-03-30 15:03:29 UTC) #2
jochen (gone - plz use gerrit)
updated the name to AccountingAllocator after offline discussion with Ben
4 years, 8 months ago (2016-03-31 11:28:31 UTC) #3
titzer
https://codereview.chromium.org/1847543002/diff/60001/test/cctest/compiler/function-tester.h File test/cctest/compiler/function-tester.h (right): https://codereview.chromium.org/1847543002/diff/60001/test/cctest/compiler/function-tester.h#newcode178 test/cctest/compiler/function-tester.h:178: Zone zone(function->GetIsolate()->allocator()); Can we have a TestZone with a ...
4 years, 8 months ago (2016-03-31 11:49:30 UTC) #4
jochen (gone - plz use gerrit)
+rossberg for src/parsing ptal
4 years, 8 months ago (2016-04-01 08:17:21 UTC) #6
Benedikt Meurer
LGTM once comments addressed. https://codereview.chromium.org/1847543002/diff/60001/test/unittests/wasm/encoder-unittest.cc File test/unittests/wasm/encoder-unittest.cc (right): https://codereview.chromium.org/1847543002/diff/60001/test/unittests/wasm/encoder-unittest.cc#newcode55 test/unittests/wasm/encoder-unittest.cc:55: base::AccountingAllocator allocator; I like this ...
4 years, 8 months ago (2016-04-01 09:00:03 UTC) #9
Michael Starzinger
LGTM. Not a huge fan of having a parameter in the Zone constructor again, but ...
4 years, 8 months ago (2016-04-01 09:15:52 UTC) #10
jochen (gone - plz use gerrit)
all comments addressed
4 years, 8 months ago (2016-04-01 09:28:23 UTC) #11
titzer
On 2016/04/01 09:28:23, jochen wrote: > all comments addressed lgtm
4 years, 8 months ago (2016-04-01 09:31:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1847543002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1847543002/100001
4 years, 8 months ago (2016-04-01 09:33:25 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-01 10:00:38 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 10:02:07 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/cb7aa79b1265b09e21a82d31d4c60470a4444fa5
Cr-Commit-Position: refs/heads/master@{#35196}

Powered by Google App Engine
This is Rietveld 408576698