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

Issue 163903002: Prototype of I/O statistics for Observatory (Closed)

Created:
6 years, 10 months ago by Søren Gjesse
Modified:
6 years, 9 months ago
Reviewers:
Cutch, Anders Johnsen
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Anders Johnsen
Visibility:
Public.

Description

Socket I/O statistics for Observatory This is the first part of adding I/O statistics to the observatory. R=ajohnsen@google.com, johnmccutchan@google.com Committed: https://code.google.com/p/dart/source/detail?r=33366

Patch Set 1 #

Total comments: 6

Patch Set 2 : Updated #

Patch Set 3 : Updated #

Patch Set 4 : Another update #

Patch Set 5 : Updated to use embedder API for registering service #

Patch Set 6 : Minor fixes #

Total comments: 6

Patch Set 7 : Addressed review comments #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+233 lines, -24 lines) Patch
M runtime/bin/eventhandler.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/eventhandler_linux.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/main.cc View 1 2 3 4 5 6 2 chunks +57 lines, -0 lines 2 comments Download
M runtime/bin/socket_android.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/bin/socket_linux.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/bin/socket_macos.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/bin/socket_patch.dart View 1 2 3 4 5 6 12 chunks +174 lines, -10 lines 10 comments Download
M runtime/bin/socket_win.cc View 1 2 3 4 1 chunk +0 lines, -1 line 1 comment Download

Messages

Total messages: 15 (0 generated)
Cutch
https://codereview.chromium.org/163903002/diff/1/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): https://codereview.chromium.org/163903002/diff/1/runtime/bin/socket_patch.dart#newcode226 runtime/bin/socket_patch.dart:226: sockets.forEach((s) { You probably should use the dart:convert library ...
6 years, 10 months ago (2014-02-13 22:42:09 UTC) #1
Søren Gjesse
https://codereview.chromium.org/163903002/diff/1/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): https://codereview.chromium.org/163903002/diff/1/runtime/bin/socket_patch.dart#newcode226 runtime/bin/socket_patch.dart:226: sockets.forEach((s) { On 2014/02/13 22:42:09, Cutch wrote: > You ...
6 years, 10 months ago (2014-02-14 12:10:13 UTC) #2
Cutch
Soren, Please see https://code.google.com/p/dart/source/detail?r=32769 for the API to register your handlers with (i.e. Dart_RegisterIsolateServiceRequestCallback and ...
6 years, 10 months ago (2014-02-18 22:43:10 UTC) #3
Søren Gjesse
On 2014/02/18 22:43:10, Cutch wrote: > Soren, > > Please see https://code.google.com/p/dart/source/detail?r=32769 for the API ...
6 years, 10 months ago (2014-02-19 13:17:57 UTC) #4
Cutch
On 2014/02/19 13:17:57, Søren Gjesse wrote: > On 2014/02/18 22:43:10, Cutch wrote: > > Soren, ...
6 years, 10 months ago (2014-02-19 15:55:31 UTC) #5
Cutch
lgtm after comments are addressed. Once you land this I will add a skeleton UI ...
6 years, 10 months ago (2014-02-19 15:56:01 UTC) #6
Søren Gjesse
Anders could you take a look? John, how about testing this? https://codereview.chromium.org/163903002/diff/320001/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): ...
6 years, 10 months ago (2014-02-19 16:02:41 UTC) #7
Cutch
On 2014/02/19 16:02:41, Søren Gjesse wrote: > Anders could you take a look? > > ...
6 years, 10 months ago (2014-02-19 16:05:02 UTC) #8
Cutch
One last nit and I think we should get a test. https://codereview.chromium.org/163903002/diff/390001/runtime/bin/socket_patch.dart File runtime/bin/socket_patch.dart (right): ...
6 years, 10 months ago (2014-02-19 16:05:13 UTC) #9
Anders Johnsen
lgtm, but we should watch closely for performance impact. https://codereview.chromium.org/163903002/diff/390001/runtime/bin/main.cc File runtime/bin/main.cc (right): https://codereview.chromium.org/163903002/diff/390001/runtime/bin/main.cc#newcode861 runtime/bin/main.cc:861: ...
6 years, 10 months ago (2014-02-19 16:14:34 UTC) #10
Cutch
On 2014/02/19 16:14:34, Anders Johnsen wrote: > lgtm, but we should watch closely for performance ...
6 years, 10 months ago (2014-02-19 16:32:46 UTC) #11
Cutch
https://codereview.chromium.org/163903002/diff/390001/runtime/bin/main.cc File runtime/bin/main.cc (right): https://codereview.chromium.org/163903002/diff/390001/runtime/bin/main.cc#newcode861 runtime/bin/main.cc:861: return strdup(json); On 2014/02/19 16:14:34, Anders Johnsen wrote: > ...
6 years, 10 months ago (2014-02-19 16:32:52 UTC) #12
Cutch
On 2014/02/19 16:32:52, Cutch wrote: > https://codereview.chromium.org/163903002/diff/390001/runtime/bin/main.cc > File runtime/bin/main.cc (right): > > https://codereview.chromium.org/163903002/diff/390001/runtime/bin/main.cc#newcode861 > ...
6 years, 10 months ago (2014-02-24 15:16:44 UTC) #13
Søren Gjesse
Committed patchset #7 manually as r33366 (presubmit successful).
6 years, 9 months ago (2014-03-06 11:12:18 UTC) #14
Søren Gjesse
6 years, 9 months ago (2014-03-06 11:13:43 UTC) #15
Message was sent while issue was closed.
I ended up removing the rate timer, as it could keep the VM from terminating
when sockets where not closed.

Will revisit in a new CL.

https://codereview.chromium.org/163903002/diff/390001/runtime/bin/socket_patc...
File runtime/bin/socket_patch.dart (right):

https://codereview.chromium.org/163903002/diff/390001/runtime/bin/socket_patc...
runtime/bin/socket_patch.dart:251: sockets.remove(socket);
On 2014/02/19 16:14:34, Anders Johnsen wrote:
> assert it is in the map.

Done.

https://codereview.chromium.org/163903002/diff/390001/runtime/bin/socket_patc...
runtime/bin/socket_patch.dart:310: members.add({'kind': kind, 'protocol':
protocol,
On 2014/02/19 16:05:13, Cutch wrote:
> Need a 'type': 'Socket' in this map.

Done.

https://codereview.chromium.org/163903002/diff/390001/runtime/bin/socket_patc...
runtime/bin/socket_patch.dart:575: _SocketsObservatory.add(this);
On 2014/02/19 16:14:34, Anders Johnsen wrote:
> Move to setListening, where eventPort == null.

Done.

https://codereview.chromium.org/163903002/diff/390001/runtime/bin/socket_patc...
runtime/bin/socket_patch.dart:614: totalRead += result.length;
On 2014/02/19 16:14:34, Anders Johnsen wrote:
> put in '!= null'.

Done.

https://codereview.chromium.org/163903002/diff/390001/runtime/bin/socket_patc...
runtime/bin/socket_patch.dart:697: _SocketsObservatory.remove(socket);
On 2014/02/19 16:14:34, Anders Johnsen wrote:
> This can be removed with above change.

Done.

Powered by Google App Engine
This is Rietveld 408576698