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

Issue 1326703004: Add resource metadata for open files. (Closed)

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

Description

Add resource metadata for open files. Start tracking the read/write information for files in the new resource management class. There is currently no time information, I will refactor the timings so that the static stopwatch from the socket_patch class is moved into the resource class instead in a follow up (keeping this simply and only about the file addition). The testing setup may seem a bit strange, but it is the only way I seem to be able to guarantee that setup actually finishes and that we get it cleaned up. John may know of a better way R=sgjesse@google.com, johnmccutchan@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/db0d25efd150c8e39fc1c365a9ae9efab525ad1d

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Patch Set 3 : address comments #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -57 lines) Patch
A runtime/observatory/tests/service/file_service_test.dart View 1 1 chunk +101 lines, -0 lines 0 comments Download
M sdk/lib/io/file_impl.dart View 1 2 11 chunks +39 lines, -52 lines 2 comments Download
M sdk/lib/io/io_resource_info.dart View 3 chunks +60 lines, -5 lines 2 comments Download

Messages

Total messages: 11 (1 generated)
ricow1
5 years, 3 months ago (2015-09-07 15:20:43 UTC) #1
Søren Gjesse
lgtm https://codereview.chromium.org/1326703004/diff/1/runtime/observatory/tests/service/file_service_test.dart File runtime/observatory/tests/service/file_service_test.dart (right): https://codereview.chromium.org/1326703004/diff/1/runtime/observatory/tests/service/file_service_test.dart#newcode72 runtime/observatory/tests/service/file_service_test.dart:72: // Initial. Not sure what that comment means. ...
5 years, 3 months ago (2015-09-08 07:55:54 UTC) #2
ricow1
https://codereview.chromium.org/1326703004/diff/1/runtime/observatory/tests/service/file_service_test.dart File runtime/observatory/tests/service/file_service_test.dart (right): https://codereview.chromium.org/1326703004/diff/1/runtime/observatory/tests/service/file_service_test.dart#newcode72 runtime/observatory/tests/service/file_service_test.dart:72: // Initial. On 2015/09/08 07:55:54, Søren Gjesse wrote: > ...
5 years, 3 months ago (2015-09-08 09:26:38 UTC) #3
ricow1
Committed patchset #3 (id:40001) manually as db0d25efd150c8e39fc1c365a9ae9efab525ad1d (presubmit successful).
5 years, 3 months ago (2015-09-08 09:27:17 UTC) #4
Ivan Posva
DBC -Ivan https://codereview.chromium.org/1326703004/diff/40001/sdk/lib/io/file_impl.dart File sdk/lib/io/file_impl.dart (right): https://codereview.chromium.org/1326703004/diff/40001/sdk/lib/io/file_impl.dart#newcode597 sdk/lib/io/file_impl.dart:597: // open. Correct, this should be done ...
5 years, 3 months ago (2015-09-08 18:06:37 UTC) #6
ricow1
https://codereview.chromium.org/1326703004/diff/40001/sdk/lib/io/io_resource_info.dart File sdk/lib/io/io_resource_info.dart (right): https://codereview.chromium.org/1326703004/diff/40001/sdk/lib/io/io_resource_info.dart#newcode34 sdk/lib/io/io_resource_info.dart:34: // TODO(ricow): Move stopwatch into this class and use ...
5 years, 3 months ago (2015-09-08 18:33:39 UTC) #7
Cutch
DBC- Looks good to me. I'm glad that you put this in the shared dart:io ...
5 years, 3 months ago (2015-09-10 14:42:44 UTC) #8
ricow1
On 2015/09/10 14:42:44, Cutch wrote: > DBC- > > Looks good to me. I'm glad ...
5 years, 3 months ago (2015-09-10 14:45:33 UTC) #9
Cutch
On 2015/09/10 14:45:33, ricow1 wrote: > On 2015/09/10 14:42:44, Cutch wrote: > > DBC- > ...
5 years, 3 months ago (2015-09-10 16:37:50 UTC) #10
ricow1
5 years, 3 months ago (2015-09-10 16:42:13 UTC) #11
Message was sent while issue was closed.
On 2015/09/10 16:37:50, Cutch wrote:
> On 2015/09/10 14:45:33, ricow1 wrote:
> > On 2015/09/10 14:42:44, Cutch wrote:
> > > DBC-
> > > 
> > > Looks good to me. I'm glad that you put this in the shared dart:io source
> > files
> > > (will be easier to get the mojo implementation working).
> > > 
> > >
> >
>
https://codereview.chromium.org/1326703004/diff/40001/sdk/lib/io/file_impl.dart
> > > File sdk/lib/io/file_impl.dart (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/1326703004/diff/40001/sdk/lib/io/file_impl.da...
> > > sdk/lib/io/file_impl.dart:597: // open.
> > > On 2015/09/08 18:06:36, Ivan Posva wrote:
> > > > Correct, this should be done with the overall initialization of the
> dart:io
> > > > library when it has been loaded by the embedder. I will be looking at
> > > different
> > > > ways of loading the dart:io library into isolates in the near future, so
> > this
> > > > might be rolled into that work.
> > > 
> > > We probably also need to do this automatically for libraries with service
> > > extensions.
> > 
> > Just let me know where to put this, and I will move the 3 current special
> cases
> > into that location.
> 
> Re testing- we should make testeeBefore return a future and await on that
before
> executing tests. There is no need to cleanup after yourself, the testee is
> killed automatically.

Two things:
  - I want to clean up the files I create! (or the bots will eventually fill up
:-) )
  - For processes, when you do a Process.run, and then kill the program doing
that, you orphan the child process and it will keep on running (this is not
really relevant here, but it is here:
https://codereview.chromium.org/1331033003/ )

Powered by Google App Engine
This is Rietveld 408576698