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

Issue 1697903002: Sampling heap profiler data structure changes (Closed)

Created:
4 years, 10 months ago by mattloring
Modified:
4 years, 10 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Sampling heap profiler data structure changes Previously, the sampling heap profiler stored a list of samples and then built a tree representation when the profile was queried by calling GetAllocationProfile. This change reduces duplication by removing stacks from all samples. Also, less information is stored in the tree maintained by the profiler and remaining information (script name, line no, etc) is resolved when a profile is requested. BUG= Committed: https://crrev.com/cdd55e2a3717723492d76f66810bf56b8de7f198 Cr-Commit-Position: refs/heads/master@{#34119}

Patch Set 1 #

Total comments: 25

Patch Set 2 : Namespaces fixes and globals cleanup #

Patch Set 3 : Remove unused name from FunctionInfo #

Patch Set 4 : Cleaned up leaking samples and function infos #

Patch Set 5 : Remove functioninfo #

Total comments: 12

Patch Set 6 : Make sample no-assign and address comments #

Patch Set 7 : Construct each global once #

Patch Set 8 : Store profile_root_ by value #

Total comments: 14

Patch Set 9 : Constify things #

Total comments: 6

Patch Set 10 : More efficient samples_ cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -139 lines) Patch
M src/profiler/sampling-heap-profiler.h View 1 2 3 4 5 6 7 8 2 chunks +48 lines, -42 lines 0 comments Download
M src/profiler/sampling-heap-profiler.cc View 1 2 3 4 5 6 7 8 9 6 chunks +77 lines, -97 lines 0 comments Download

Messages

Total messages: 46 (16 generated)
mattloring
4 years, 10 months ago (2016-02-14 14:55:00 UTC) #3
ofrobots
https://codereview.chromium.org/1697903002/diff/1/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (left): https://codereview.chromium.org/1697903002/diff/1/src/profiler/sampling-heap-profiler.cc#oldcode70 src/profiler/sampling-heap-profiler.cc:70: } Are we still clearing the weak references we ...
4 years, 10 months ago (2016-02-14 23:57:42 UTC) #4
mattloring
https://codereview.chromium.org/1697903002/diff/1/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (left): https://codereview.chromium.org/1697903002/diff/1/src/profiler/sampling-heap-profiler.cc#oldcode70 src/profiler/sampling-heap-profiler.cc:70: } On 2016/02/14 23:57:42, ofrobots wrote: > Are we ...
4 years, 10 months ago (2016-02-16 05:28:40 UTC) #5
mattloring
https://codereview.chromium.org/1697903002/diff/1/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1697903002/diff/1/src/profiler/sampling-heap-profiler.cc#newcode147 src/profiler/sampling-heap-profiler.cc:147: script_name_(""), On 2016/02/14 23:57:42, ofrobots wrote: > Do we ...
4 years, 10 months ago (2016-02-16 15:10:54 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1697903002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1697903002/40001
4 years, 10 months ago (2016-02-17 00:44:25 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/13784)
4 years, 10 months ago (2016-02-17 01:23:10 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1697903002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1697903002/60001
4 years, 10 months ago (2016-02-17 02:01:47 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-17 02:40:01 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1697903002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1697903002/80001
4 years, 10 months ago (2016-02-17 04:19:24 UTC) #17
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-17 05:04:45 UTC) #19
ulan
https://codereview.chromium.org/1697903002/diff/80001/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1697903002/diff/80001/src/profiler/sampling-heap-profiler.cc#newcode68 src/profiler/sampling-heap-profiler.cc:68: for (auto it = samples_.begin(); it != samples_.end(); ++it) ...
4 years, 10 months ago (2016-02-17 11:14:51 UTC) #20
ofrobots
https://codereview.chromium.org/1697903002/diff/1/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1697903002/diff/1/src/profiler/sampling-heap-profiler.cc#newcode89 src/profiler/sampling-heap-profiler.cc:89: Sample* sample = new Sample({size, node, global}); On 2016/02/16 ...
4 years, 10 months ago (2016-02-17 17:48:21 UTC) #21
mattloring
https://codereview.chromium.org/1697903002/diff/80001/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1697903002/diff/80001/src/profiler/sampling-heap-profiler.cc#newcode68 src/profiler/sampling-heap-profiler.cc:68: for (auto it = samples_.begin(); it != samples_.end(); ++it) ...
4 years, 10 months ago (2016-02-17 17:50:21 UTC) #22
ofrobots
https://codereview.chromium.org/1697903002/diff/80001/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1697903002/diff/80001/src/profiler/sampling-heap-profiler.cc#newcode47 src/profiler/sampling-heap-profiler.cc:47: profile_root_ = The lifetime of this allocation seems to ...
4 years, 10 months ago (2016-02-17 17:54:30 UTC) #23
mattloring
https://codereview.chromium.org/1697903002/diff/1/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1697903002/diff/1/src/profiler/sampling-heap-profiler.cc#newcode89 src/profiler/sampling-heap-profiler.cc:89: Sample* sample = new Sample({size, node, global}); On 2016/02/17 ...
4 years, 10 months ago (2016-02-17 17:59:47 UTC) #24
mattloring
https://codereview.chromium.org/1697903002/diff/80001/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1697903002/diff/80001/src/profiler/sampling-heap-profiler.cc#newcode47 src/profiler/sampling-heap-profiler.cc:47: profile_root_ = On 2016/02/17 17:54:29, ofrobots wrote: > The ...
4 years, 10 months ago (2016-02-17 19:09:36 UTC) #25
ofrobots
https://codereview.chromium.org/1697903002/diff/140001/src/profiler/sampling-heap-profiler.h File src/profiler/sampling-heap-profiler.h (left): https://codereview.chromium.org/1697903002/diff/140001/src/profiler/sampling-heap-profiler.h#oldcode81 src/profiler/sampling-heap-profiler.h:81: global_.Reset(); // drop the reference. You missed this. You ...
4 years, 10 months ago (2016-02-17 22:34:50 UTC) #26
mattloring
https://codereview.chromium.org/1697903002/diff/140001/src/profiler/sampling-heap-profiler.h File src/profiler/sampling-heap-profiler.h (left): https://codereview.chromium.org/1697903002/diff/140001/src/profiler/sampling-heap-profiler.h#oldcode81 src/profiler/sampling-heap-profiler.h:81: global_.Reset(); // drop the reference. On 2016/02/17 22:34:49, ofrobots ...
4 years, 10 months ago (2016-02-17 23:11:01 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1697903002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1697903002/160001
4 years, 10 months ago (2016-02-17 23:12:10 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win64_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win64_rel_ng/builds/3077)
4 years, 10 months ago (2016-02-17 23:18:49 UTC) #31
ofrobots
https://codereview.chromium.org/1697903002/diff/160001/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1697903002/diff/160001/src/profiler/sampling-heap-profiler.cc#newcode70 src/profiler/sampling-heap-profiler.cc:70: samples_.clear(); nit: It is more efficient to do a ...
4 years, 10 months ago (2016-02-18 01:02:25 UTC) #32
mattloring
https://codereview.chromium.org/1697903002/diff/160001/src/profiler/sampling-heap-profiler.cc File src/profiler/sampling-heap-profiler.cc (right): https://codereview.chromium.org/1697903002/diff/160001/src/profiler/sampling-heap-profiler.cc#newcode70 src/profiler/sampling-heap-profiler.cc:70: samples_.clear(); On 2016/02/18 01:02:24, ofrobots wrote: > nit: It ...
4 years, 10 months ago (2016-02-18 01:30:04 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1697903002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1697903002/180001
4 years, 10 months ago (2016-02-18 01:30:29 UTC) #35
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-18 02:01:12 UTC) #37
ofrobots
On 2016/02/18 02:01:12, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 10 months ago (2016-02-18 03:06:54 UTC) #38
ulan
lgtm
4 years, 10 months ago (2016-02-18 12:00:37 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1697903002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1697903002/180001
4 years, 10 months ago (2016-02-18 14:45:05 UTC) #41
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 10 months ago (2016-02-18 14:47:40 UTC) #43
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/cdd55e2a3717723492d76f66810bf56b8de7f198 Cr-Commit-Position: refs/heads/master@{#34119}
4 years, 10 months ago (2016-02-18 14:48:16 UTC) #45
Michael Achenbach
4 years, 10 months ago (2016-02-18 19:04:19 UTC) #46
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/1708363002/ by machenbach@chromium.org.

The reason for reverting is: [Sheriff] Speculative revert for cpu profiler
crashes on chromebooks:
https://build.chromium.org/p/client.v8/builders/V8%20Arm%20-%20debug/builds/549
https://build.chromium.org/p/client.v8/builders/V8%20Arm%20-%20debug/builds/550.

Powered by Google App Engine
This is Rietveld 408576698