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

Issue 10086004: Add size metric into Heap Stats. (Closed)

Created:
8 years, 8 months ago by loislo
Modified:
8 years, 8 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add size metric into Heap Stats. The stats data have only count field at the moment. A constantly growing array of integers also can be a reason of a leak. Ans we have to have a way to detect such kind of leaks. Drive by fix: FindObject and AddEntry were replaced with FindEntry/FindOrAddEntry pair. BUG=none TEST=HeapSnapshotObjectsStats Committed: https://code.google.com/p/v8/source/detail?r=11327

Patch Set 1 #

Total comments: 9

Patch Set 2 : comments addressed #

Patch Set 3 : comments addressed #

Total comments: 5

Patch Set 4 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -76 lines) Patch
M include/v8-profiler.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M src/profile-generator.h View 1 4 chunks +12 lines, -11 lines 0 comments Download
M src/profile-generator.cc View 1 2 3 9 chunks +28 lines, -55 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 2 3 11 chunks +53 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
loislo
8 years, 8 months ago (2012-04-13 14:22:48 UTC) #1
mnaganov (inactive)
https://chromiumcodereview.appspot.com/10086004/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10086004/diff/1/src/profile-generator.cc#newcode1435 src/profile-generator.cc:1435: stats_buffer.Add(time_interval.size = entries_size); It seems, you need to update ...
8 years, 8 months ago (2012-04-13 14:36:41 UTC) #2
mnaganov (inactive)
https://chromiumcodereview.appspot.com/10086004/diff/1/test/cctest/test-heap-profiler.cc File test/cctest/test-heap-profiler.cc (right): https://chromiumcodereview.appspot.com/10086004/diff/1/test/cctest/test-heap-profiler.cc#newcode858 test/cctest/test-heap-profiler.cc:858: Also, it might be worth testing that you can ...
8 years, 8 months ago (2012-04-13 14:42:31 UTC) #3
yurys
https://chromiumcodereview.appspot.com/10086004/diff/1/src/profile-generator.cc File src/profile-generator.cc (left): https://chromiumcodereview.appspot.com/10086004/diff/1/src/profile-generator.cc#oldcode1315 src/profile-generator.cc:1315: : initial_fill_mode_(true), Please remove the field from header.
8 years, 8 months ago (2012-04-13 15:01:19 UTC) #4
alexeif
https://chromiumcodereview.appspot.com/10086004/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10086004/diff/1/src/profile-generator.cc#newcode1382 src/profile-generator.cc:1382: entry_info.size = size; why do you need to update ...
8 years, 8 months ago (2012-04-13 15:01:27 UTC) #5
loislo
On 2012/04/13 15:01:27, alexeif wrote: > https://chromiumcodereview.appspot.com/10086004/diff/1/src/profile-generator.cc > File src/profile-generator.cc (right): > > https://chromiumcodereview.appspot.com/10086004/diff/1/src/profile-generator.cc#newcode1382 > ...
8 years, 8 months ago (2012-04-13 16:32:44 UTC) #6
mnaganov (inactive)
https://chromiumcodereview.appspot.com/10086004/diff/1005/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10086004/diff/1005/src/profile-generator.cc#newcode1430 src/profile-generator.cc:1430: uint32_t entries_count = entry_info - start_entry_info; Are you sure ...
8 years, 8 months ago (2012-04-16 08:13:54 UTC) #7
loislo
done
8 years, 8 months ago (2012-04-16 08:49:08 UTC) #8
mnaganov (inactive)
8 years, 8 months ago (2012-04-16 09:35:04 UTC) #9
lgtm

Powered by Google App Engine
This is Rietveld 408576698