Chromium Code Reviews

Issue 22347003: Deprecate self and total time getters and total sample count getter on CpuProfileNode (Closed)

Created:
7 years, 4 months ago by yurys
Modified:
7 years, 4 months ago
Reviewers:
Benedikt Meurer, Sven Panne, alph, Yang, loislo
CC:
v8-dev
Visibility:
Public.

Description

Deprecate self and total time getters and total sample count getter on CpuProfileNode All of these values are derived from the self samples count and there is no need to evaluate them in v8 when clients can do that when needed on their side. Also added unsigned GetHitCount() which should be used instead of double GetSelfSamplesCount(). I'm going to deprecate the latter one once Blink has switched to GetHitCount. BUG=267595 R=loislo@chromium.org, svenpanne@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16116

Patch Set 1 #

Patch Set 2 : Changed sample count type to unsigned #

Total comments: 5

Patch Set 3 : Added GetHitCount #

Total comments: 2
Unified diffs Side-by-side diffs Stats (+19 lines, -19 lines)
M include/v8-profiler.h View 1 chunk +11 lines, -4 lines 2 comments
M src/api.cc View 6 chunks +5 lines, -14 lines 0 comments
M src/profile-generator.cc View 1 chunk +1 line, -1 line 0 comments
M test/cctest/test-cpu-profiler.cc View 1 chunk +2 lines, -0 lines 0 comments

Messages

Total messages: 9 (0 generated)
yurys
This change should be landed after Blink r155755 is rolled into Chromium.
7 years, 4 months ago (2013-08-08 09:28:59 UTC) #1
loislo
lgtm https://codereview.chromium.org/22347003/diff/3001/src/api.cc File src/api.cc (left): https://codereview.chromium.org/22347003/diff/3001/src/api.cc#oldcode7481 src/api.cc:7481: IsDeadCheck(isolate, "v8::CpuProfileNode::GetScriptId"); why did you remove that lines?
7 years, 4 months ago (2013-08-08 11:04:47 UTC) #2
Sven Panne
Some DBCs... https://codereview.chromium.org/22347003/diff/3001/include/v8-profiler.h File include/v8-profiler.h (right): https://codereview.chromium.org/22347003/diff/3001/include/v8-profiler.h#newcode76 include/v8-profiler.h:76: unsigned GetSelfSamplesCount() const; Two remarks here: * ...
7 years, 4 months ago (2013-08-08 11:51:57 UTC) #3
yurys
https://codereview.chromium.org/22347003/diff/3001/src/api.cc File src/api.cc (left): https://codereview.chromium.org/22347003/diff/3001/src/api.cc#oldcode7481 src/api.cc:7481: IsDeadCheck(isolate, "v8::CpuProfileNode::GetScriptId"); On 2013/08/08 11:04:47, loislo wrote: > why ...
7 years, 4 months ago (2013-08-08 12:33:10 UTC) #4
yurys
https://codereview.chromium.org/22347003/diff/3001/include/v8-profiler.h File include/v8-profiler.h (right): https://codereview.chromium.org/22347003/diff/3001/include/v8-profiler.h#newcode76 include/v8-profiler.h:76: unsigned GetSelfSamplesCount() const; On 2013/08/08 11:51:57, Sven Panne wrote: ...
7 years, 4 months ago (2013-08-08 12:43:49 UTC) #5
yurys
Added new method with different return type for sample count. Sven, please take another look.
7 years, 4 months ago (2013-08-08 12:51:56 UTC) #6
Sven Panne
LGTM if there is a strong reason for not using V8_DEPRECATED, otherwise simply add it. ...
7 years, 4 months ago (2013-08-08 13:05:38 UTC) #7
yurys
https://codereview.chromium.org/22347003/diff/10001/include/v8-profiler.h File include/v8-profiler.h (right): https://codereview.chromium.org/22347003/diff/10001/include/v8-profiler.h#newcode78 include/v8-profiler.h:78: double GetSelfSamplesCount() const; On 2013/08/08 13:05:38, Sven Panne wrote: ...
7 years, 4 months ago (2013-08-08 13:37:41 UTC) #8
yurys
7 years, 4 months ago (2013-08-08 13:40:08 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 manually as r16116 (presubmit successful).

Powered by Google App Engine