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

Issue 1541893002: Support narrowing a cpu profile to a given time window (Closed)

Created:
5 years ago by Cutch
Modified:
5 years ago
Reviewers:
siva
CC:
reviews_dartlang.org, turnidge, rmacnak, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Support narrowing a cpu profile to a given time window - Add optional 'timeOriginMicros' and 'timeExtentMicros' parameters to all CPU profile service protocol RPCs. - Add test to verify that time filtering works. R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/d187d4745e5d2acd62d114092d3456672a58d030

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -21 lines) Patch
M runtime/vm/profiler.h View 1 2 chunks +12 lines, -1 line 0 comments Download
M runtime/vm/profiler.cc View 2 chunks +16 lines, -0 lines 0 comments Download
M runtime/vm/profiler_service.h View 1 chunk +9 lines, -3 lines 0 comments Download
M runtime/vm/profiler_service.cc View 4 chunks +32 lines, -10 lines 0 comments Download
M runtime/vm/profiler_test.cc View 1 4 chunks +33 lines, -4 lines 0 comments Download
M runtime/vm/service.cc View 1 7 chunks +62 lines, -3 lines 0 comments Download
M sdk/lib/developer/timeline.dart View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Cutch
5 years ago (2015-12-21 18:24:04 UTC) #4
siva
lgtm https://codereview.chromium.org/1541893002/diff/1/runtime/vm/profiler.h File runtime/vm/profiler.h (right): https://codereview.chromium.org/1541893002/diff/1/runtime/vm/profiler.h#newcode96 runtime/vm/profiler.h:96: int64_t time_extent_micros = -1) I don't see any ...
5 years ago (2015-12-21 20:43:28 UTC) #5
Cutch
https://codereview.chromium.org/1541893002/diff/1/runtime/vm/profiler.h File runtime/vm/profiler.h (right): https://codereview.chromium.org/1541893002/diff/1/runtime/vm/profiler.h#newcode96 runtime/vm/profiler.h:96: int64_t time_extent_micros = -1) On 2015/12/21 20:43:27, siva wrote: ...
5 years ago (2015-12-21 22:07:38 UTC) #6
Cutch
Committed patchset #3 (id:40001) manually as d187d4745e5d2acd62d114092d3456672a58d030 (presubmit successful).
5 years ago (2015-12-21 22:07:53 UTC) #8
siva
https://codereview.chromium.org/1541893002/diff/1/runtime/vm/profiler.h File runtime/vm/profiler.h (right): https://codereview.chromium.org/1541893002/diff/1/runtime/vm/profiler.h#newcode99 runtime/vm/profiler.h:99: time_extent_micros_(time_extent_micros) { } On 2015/12/21 22:07:38, Cutch wrote: > ...
5 years ago (2015-12-22 17:08:23 UTC) #9
Cutch
5 years ago (2015-12-22 17:14:51 UTC) #10
Message was sent while issue was closed.
On 2015/12/22 17:08:23, siva wrote:
> https://codereview.chromium.org/1541893002/diff/1/runtime/vm/profiler.h
> File runtime/vm/profiler.h (right):
> 
>
https://codereview.chromium.org/1541893002/diff/1/runtime/vm/profiler.h#newco...
> runtime/vm/profiler.h:99: time_extent_micros_(time_extent_micros) { }
> On 2015/12/21 22:07:38, Cutch wrote:
> > On 2015/12/21 20:43:28, siva wrote:
> > > ASSERT(time_origin_micros >= 0);
> > > ASSERT(time_extent_micros >= 0);
> > > 
> > > because of the math done in the implementation of TimeFilterSample
> > 
> > When these are -1 it means we don't have a TimeFilterSample.
> 
> Sorry I meant :
> ASSERT(time_origin_micros >= -1);
> ASSERT(time_extent_micros >= -1);

Done in https://codereview.chromium.org/1533323004/

Powered by Google App Engine
This is Rietveld 408576698