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

Issue 12207076: Added new GetHeapStatistics API entry and deprecated old one. (Closed)

Created:
7 years, 10 months ago by Sven Panne
Modified:
7 years, 10 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Added new GetHeapStatistics API entry and deprecated old one. Simplified the HeapStatistics class a bit, following Uncle Bob's advice that adding accessors to DTOs only satisfies some design fundamentalists, but serves no other purpose. :-) Committed: http://code.google.com/p/v8/source/detail?r=13631

Patch Set 1 #

Total comments: 3

Patch Set 2 : Removed Clear() again. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -29 lines) Patch
M include/v8.h View 1 4 chunks +8 lines, -14 lines 0 comments Download
M src/api.cc View 1 2 chunks +21 lines, -14 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Sven Panne
7 years, 10 months ago (2013-02-08 09:45:17 UTC) #1
Michael Starzinger
LGTM with a nit and a suggestion. https://codereview.chromium.org/12207076/diff/1/src/api.cc File src/api.cc (right): https://codereview.chromium.org/12207076/diff/1/src/api.cc#newcode4420 src/api.cc:4420: heap_statistics->Clear(); Since ...
7 years, 10 months ago (2013-02-08 12:30:11 UTC) #2
Sven Panne
7 years, 10 months ago (2013-02-08 12:41:36 UTC) #3
Landing...

https://codereview.chromium.org/12207076/diff/1/src/api.cc
File src/api.cc (right):

https://codereview.chromium.org/12207076/diff/1/src/api.cc#newcode4420
src/api.cc:4420: heap_statistics->Clear();
On 2013/02/08 12:30:11, Michael Starzinger wrote:
> Since there is only one use of the Clear() method besides the constructor, and
> that is in a deprecated method, one could even argue to remove the Clear()
> method completely. But I'll leave that up to you.

Good point, leaving the duplication as it is until everything magically vanishes
is probably a good idea, it makes this CL even smaller.

Powered by Google App Engine
This is Rietveld 408576698