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

Issue 3004563003: Refactor Isolate name format, storage and log (Closed)

Created:
3 years, 4 months ago by cbernaschina
Modified:
3 years, 3 months ago
Reviewers:
zra, rmacnak, siva
CC:
reviews_dartlang.org, turnidge, rmacnak, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Refactor Isolate name format, storage and log At the moment isolated has a name field which is on the main_port the only exception is the vm-service isolate. The name is used just for logging. The service protocol though uses an extra field called debugger_name, that at this moment is redundant and is optimized away during compilation. BUG= R=rmacnak@google.com, zra@google.com This CL: - Removes the debugger_name in favor of a modifiable name - Adds to all the log where the name was logged the main_port (that is the only real identifier) - Changes the default format of the isolate name from: <script_uri>$<main> to: <script_uri>:<main>() Committed: https://github.com/dart-lang/sdk/commit/cf4cc1973a35b4b17c13f6e919d4ce470bd45fd9

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address CL comments #

Patch Set 3 : Make Dart_DebugName unique again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -90 lines) Patch
M runtime/observatory/tests/service/dev_fs_spawn_test.dart View 1 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/observatory/tests/service/set_name_rpc_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/compiler_stats.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 2 chunks +5 lines, -3 lines 0 comments Download
M runtime/vm/heap.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 chunks +1 line, -6 lines 0 comments Download
M runtime/vm/isolate.cc View 1 5 chunks +6 lines, -14 lines 0 comments Download
M runtime/vm/json_stream.cc View 2 chunks +14 lines, -10 lines 0 comments Download
M runtime/vm/message_handler.cc View 1 chunk +15 lines, -10 lines 0 comments Download
M runtime/vm/service.cc View 4 chunks +37 lines, -31 lines 0 comments Download
M runtime/vm/timeline_analysis.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
cbernaschina
3 years, 4 months ago (2017-08-24 18:20:39 UTC) #2
rmacnak
lgtm https://codereview.chromium.org/3004563003/diff/1/runtime/observatory/tests/service/dev_fs_spawn_test.dart File runtime/observatory/tests/service/dev_fs_spawn_test.dart (right): https://codereview.chromium.org/3004563003/diff/1/runtime/observatory/tests/service/dev_fs_spawn_test.dart#newcode179 runtime/observatory/tests/service/dev_fs_spawn_test.dart:179: expect(event.isolate.name, equals('devfs_file2.dart\:main()')); The colon doesn't need to be ...
3 years, 4 months ago (2017-08-24 19:00:19 UTC) #3
cbernaschina
https://codereview.chromium.org/3004563003/diff/1/runtime/observatory/tests/service/dev_fs_spawn_test.dart File runtime/observatory/tests/service/dev_fs_spawn_test.dart (right): https://codereview.chromium.org/3004563003/diff/1/runtime/observatory/tests/service/dev_fs_spawn_test.dart#newcode179 runtime/observatory/tests/service/dev_fs_spawn_test.dart:179: expect(event.isolate.name, equals('devfs_file2.dart\:main()')); On 2017/08/24 19:00:19, rmacnak wrote: > The ...
3 years, 4 months ago (2017-08-24 20:19:33 UTC) #4
cbernaschina
3 years, 4 months ago (2017-08-24 20:21:49 UTC) #7
zra
It looks like this change will break FlutterView filtering in the Flutter tool.
3 years, 4 months ago (2017-08-24 20:57:08 UTC) #8
cbernaschina
On 2017/08/24 20:57:08, zra wrote: > It looks like this change will break FlutterView filtering ...
3 years, 4 months ago (2017-08-24 21:35:19 UTC) #9
cbernaschina
3 years, 4 months ago (2017-08-24 21:45:35 UTC) #10
cbernaschina
On 2017/08/24 21:45:35, cbernaschina wrote: https://github.com/flutter/engine/pull/4007#pullrequestreview-58720781
3 years, 3 months ago (2017-08-25 18:12:23 UTC) #11
zra
lgtm
3 years, 3 months ago (2017-08-25 19:20:44 UTC) #12
cbernaschina
3 years, 3 months ago (2017-08-26 01:07:12 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
cf4cc1973a35b4b17c13f6e919d4ce470bd45fd9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698