Commit Graph

1605 Commits

Author SHA1 Message Date
Carlo Bernaschina df8bf384eb Introduce external services registration
A new RPC is introduced `_registerService` which allow clients to
register new services that are accessible from all the other clients.

Each registered endpoint is identified by 3 strings:

 - `service`
   a non empty string which identifies the provided service
   (e.g. `HotReload`, `OpenFile`)
 - `alias`
   an alias for that particular endpoint used by clients to identify it
   (e.g. `Flutter`, `IntelliJ`)
 - `method` __generated__
   the RPC method that should be invoked from a client to request it

A new _stream_ `_Service` is introduce, and two related events:

 - `ServiceRegistered`
   which is triggered when a new client is registered.
   All the related information (`service`, `alias`, `method`) are sent.

 - `ServiceUnregistered`
   which is triggered when a client, which previously registered a
   service, disconnects.
   Just `service` and `method` are sent.

Related https://github.com/dart-lang/sdk/issues/30023

R=asiva@google.com, bkonyi@google.com

Review-Url: https://codereview.chromium.org/2980733003 .
2017-07-13 18:18:51 -07:00
Ryan Macnak ccadb4687c [observatory] Sort native allocation profiles by size.
R=bkonyi@google.com, zra@google.com

Review-Url: https://codereview.chromium.org/2977803002 .
2017-07-12 12:42:44 -07:00
Carlo Bernaschina 5609841212 Fixed observatory_ui/vm_connect test in checked mode
TBR=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2979433002 .
2017-07-07 14:26:25 -07:00
Carlo Bernaschina 15970f2a7e Fixed synchronization problem in FF and Safari for virtual-tree test
Closes #30087

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2968283002 .
2017-07-07 13:39:46 -07:00
Carlo Bernaschina 992c4aa8ad Restored vm-connect Observatory_UI tests
Closes #27714

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2972133002 .
2017-07-07 13:34:33 -07:00
Lasse R.H. Nielsen 4174896332 Mark failing test as failing.
Committed: https://github.com/dart-lang/sdk/commit/38625a1a3488b4b3440c11bb4e32d79bf594adbb
Review-Url: https://codereview.chromium.org/2973603004 .
2017-07-06 12:59:11 +02:00
Lasse R.H. Nielsen 38625a1a34 Mark failing test as failing.
Review-Url: https://codereview.chromium.org/2973603004 .
2017-07-06 10:25:48 +02:00
Carlo Bernaschina 6be07a30bc Avoid Stack Overflows during VirtualTree expansion
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2968813002 .
2017-07-05 17:47:00 -07:00
Carlo Bernaschina fb36c9d5bd Better sorting and naming for TimelinePage Recorded Streams Profiles
Closes=https://github.com/dart-lang/sdk/issues/29275

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2965833002 .
2017-06-30 16:37:23 -07:00
Carlo Bernaschina 3ad0577442 Change Timeline Page presets UI from Select to Buttons
Related=https://github.com/dart-lang/sdk/issues/29275

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2967703003 .
2017-06-30 16:20:19 -07:00
Carlo Bernaschina a8450243eb Disable expansion of VirtualTree and VirtualCollection items
VirtualTree and VirtualCollection must have fixed size children.
Expandable Ref Elements are by default able to expand.
Added flag to disable the expansion when required.

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2970443002 .
2017-06-29 16:24:47 -07:00
Alexander Aprelev 501688de4c Drop custom dart_host_sdk used for Flutter.
Instead have Flutter fetch prebuilt host sdk into same location where standalone dart expects it.

BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2963053002 .
2017-06-29 13:18:43 -07:00
Ryan Macnak 399ade26aa [observatory] Add a 'GC' button to heap map.
R=cbernaschina@google.com

Review-Url: https://codereview.chromium.org/2953373002 .
2017-06-29 10:45:26 -07:00
Carlo Bernaschina 0d86f5f3c5 Added Editor stream and sendObjectToEditor RPC into Service Protocol
Related=https://github.com/dart-lang/sdk/issues/30023

R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2962593002 .
2017-06-29 10:08:12 -07:00
Erik Corry 029b1cb948 Spelling fixes e to i.
R=kevmoo@google.com
BUG=

Review-Url: https://codereview.chromium.org/2957593002 .
2017-06-24 13:41:39 +02:00
Alexander Aprelev 8cd713bed3 Introduce dart_host_toolchain argument for generate_patch_sdk.gni. This allows for Flutter build to make sure that host_toolchain used for patched_sdk generation word size matches target platform.
Flutter Dart in product configuration doesn't allow --checked option. So remove '--checked' from invocation.

R=rmacnak@google.com

BUG:https://github.com/flutter/flutter/issues/10841
Review-Url: https://codereview.chromium.org/2944103003 .
2017-06-22 12:41:31 -07:00
Ryan Macnak bcb4fcfa11 [vm-service] Encode ticks directly as integers, since they are expect to stay in JS integer range.
Fixes #29957

R=cbernaschina@google.com

Review-Url: https://codereview.chromium.org/2951803004 .
2017-06-22 09:50:36 -07:00
Zachary Anderson ac16656161 Remove MIPS support
R=asiva@google.com

Review-Url: https://codereview.chromium.org/2858623002 .
2017-06-22 08:49:22 -07:00
Ryan Macnak 1eee6d8af3 Mostly revert "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binaries."
This reverts commit 9ab39ae099.

Keep removal of bad assert in loader.dart.  Keep using script snapshot in cross builds.

We expect to use a checked-in SDK in the Fuschia build instead.

R=zra@google.com

Review-Url: https://codereview.chromium.org/2951133002 .
2017-06-21 15:19:21 -07:00
Kevin Millikin 8340cfda55 Revert "Proper sequencing of _asyncStackTraceHelper in Kernel"
This reverts commit 0489249d29.  The
change causes failures in the front end tests.

BUG=
R=sivachandra@google.com

Review-Url: https://codereview.chromium.org/2949533003 .
2017-06-19 17:21:22 +02:00
Kevin Millikin 0489249d29 Proper sequencing of _asyncStackTraceHelper in Kernel
This helper function was being called before its argument was
initialized so it was passing null.  Instead, it should be called
after its argument is initialized.

Because the initialization happens in Kernel code, it is simplest to
insert the call explicitly in Kernel code as well as part of the async
transformation.  This has the consequence that we now call the helper
function even when the flag causal_async_stacks is false.

Fixes #29771.

BUG=
R=aam@google.com, asiva@google.com

Review-Url: https://codereview.chromium.org/2936793003 .
2017-06-19 16:52:58 +02:00
Carlo Bernaschina 504125071e Fixed interface documentation
BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2941313002 .
2017-06-16 16:27:35 -07:00
Carlo Bernaschina e826fdcb6b Cleaned analysis result for observatory
BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2940523003 .
2017-06-14 12:23:48 -07:00
Carlo Bernaschina f5bca80a48 Removed unnecessary string concatenations
BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2942493002 .
2017-06-14 11:23:12 -07:00
Devon Carew 9ec724cd6b Address observatory analysis issues.
BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2934973002 .
2017-06-13 15:58:01 -07:00
Ryan Macnak 9ab39ae099 Reapply "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binaries."
Add missing config to run_vm_tests.

R=zra@google.com

Review-Url: https://codereview.chromium.org/2937503003 .
2017-06-13 08:49:00 -07:00
Ryan Macnak 3383c4ac25 Revert "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binaries."
This reverts commit 54e80a8c32.

Review-Url: https://codereview.chromium.org/2940513002 .
2017-06-12 15:19:23 -07:00
Ryan Macnak f02d34362e Revert "Address additional analysis issues in the observatory codebase."
This reverts commit 2ea426a509.

Platform.script doesn't necessarily point to source.

TBR=devoncarew@google.com

Review-Url: https://codereview.chromium.org/2935873002 .
2017-06-12 15:10:35 -07:00
Ryan Macnak 54e80a8c32 [fuchsia] Prepare for setting the Dart target architecture appropriately in the host binaries.
Build another varient of dart_bootstrap targeting the host architecture to ensure reasonable Observatory build times.

Remove assert assuming a root script, which does not exist when gen_snapshot builds core snapshots.

R=zra@google.com

Review-Url: https://codereview.chromium.org/2924173005 .
2017-06-12 14:33:10 -07:00
Devon Carew 2ea426a509 Address additional analysis issues in the observatory codebase.
BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2930993004 .
2017-06-12 13:11:59 -07:00
Devon Carew 5d0b5e3011 Remove the analyzer super mixin ignore on evaluate_activation_in_method_class_test.
BUG=

Review-Url: https://codereview.chromium.org/2925323005 .
2017-06-09 00:28:50 -07:00
Devon Carew 60a8ed5d47 Fix some observatory analysis issues.
BUG=
R=rmacnak@google.com

Review-Url: https://codereview.chromium.org/2920603003 .
2017-06-08 23:59:26 -07:00
Lasse R.H. Nielsen 5720e3556c Add negation to single-identifier tests in status files.
Optimize some regegps too.

Fixes #29756

BUG= http://dartbug.com/29756
R=rnystrom@google.com

Review-Url: https://codereview.chromium.org/2913963002 .
2017-06-02 10:38:14 +02:00
Ryan Macnak 2abda1fdd7 Observatory:
- Add M.Isolate.collectAllGarbage.
 - Add 'count' parameter to ObjectRepository.get.
 - Set hover text in heap map so it is usable when it doesn't fit on one page.

R=asiva@google.com, devoncarew@google.com

Review-Url: https://codereview.chromium.org/2914283002 .
2017-06-01 14:26:46 -07:00
Siva Chandra ffeaa4a46d Hit breakpoints in single line closures.
Before this change, breakpoints on lines like the following were not hit:

var singleLineClosure = (int a, int b) => return a + b;

The reason was that breakpoints were only resolved if their start token
was contained within a function. Since that is not true for closure vars
like in the above example, the breakpoints were never getting resolved.
This change avoids such a problem by resolving breakpoints if the token
range of the breakpoint overlaps the token range of a function.

Fixes #29736

R=asiva@google.com

Review-Url: https://codereview.chromium.org/2912763005 .
2017-06-01 11:26:06 -07:00
Siva Chandra a5aaa7f5eb Update test failures after 3b9cf73.
BUG=
TBR=aam

Review-Url: https://codereview.chromium.org/2907003002 .
2017-05-26 22:57:24 -07:00
Zachary Anderson 81e428fd39 [infra] Assembles the SDK using GN rather than create_sdk.py
This has a few advantages:
- We can track dependencies more precisely
- ninja can assemble things in parallel as they're ready rather than
  sequentially all at once.
- It is easier to customize SDKs depending on target platform, e.g.
  Fuchsia.

This CL also has a number of cleanups:
- Defining is_fuchsia and is_fuchsia host so we don't always have to check
- Piping through toolchain overrides in more places
- Fixing bugs in copy_tree.py, not using list_files.py, which is broken on Windows

related #29558

R=whesse@google.com

Review-Url: https://codereview.chromium.org/2848943003 .
2017-05-20 23:30:09 -07:00
Erik Corry bd6f0800fc Fix flaky test that makes assumptions about other things on the heap
R=whesse@google.com
BUG=

Review-Url: https://codereview.chromium.org/2896583002 .
2017-05-19 16:58:35 +02:00
Ryan Macnak 03a2c24edf vm-service: Add optional 'scope' parameter to 'evaluate' and 'evaluateInFrame'.
Closes #29535

R=asiva@google.com

Review-Url: https://codereview.chromium.org/2872503004 .
2017-05-18 18:02:49 -07:00
Ryan Macnak 1bf31322ad Omnibus Observatory UI fixes:
- Globally replace InstanceRepository with ObjectRepository. In general, instances may reference non-instances, so we should not assume we'll only get instances from the fields of instances.
 - Allow expanding context and closure refs like regular instance refs.
 - Fix display of a mirror reference's referent, which is never an instance or context.

R=aam@google.com, mfairhurst@google.com

Review-Url: https://codereview.chromium.org/2873013004 .
2017-05-09 17:00:34 -07:00
Ryan Macnak 51ce2ba5e8 Clarify presentation of the target in retaining paths.
Update styles etc to fix missing italics.

R=aam@google.com

Review-Url: https://codereview.chromium.org/2862383002 .
2017-05-09 13:37:33 -07:00
Ryan Macnak c301c62b1f Avoid error in Observatory about trying to load file not included in the Observatory assets.
Related to issue #29577

R=zra@google.com

Review-Url: https://codereview.chromium.org/2870713002 .
2017-05-08 14:00:11 -07:00
Jens Johansen 2074c40919 Add more text output to service test pause_on_start_then_step_test
This test has timed out on the bots, but it isn't clear when exactly
it 'stops responding'.

This CL adds a few more lines of output in an attempt to make it
more clear (on any new timeout) where it stops responding.

See https://github.com/dart-lang/sdk/issues/29568 for example timeout.

R=kmillikin@google.com

Review-Url: https://codereview.chromium.org/2861673008 .
2017-05-08 08:39:33 +02:00
Karl Klose 8a9775e8ab [Gardening] Revert status file change for contexts_test on dartk after reverting 7a463a
TBR=jensj@google.com

Closes #29513

Review-Url: https://codereview.chromium.org/2854093002 .
2017-05-02 16:53:38 +02:00
Erik Corry aa6353b6da Dart SDK Spelling b, c, and d.
R=kmillikin@google.com
BUG=

Review-Url: https://codereview.chromium.org/2850783002 .
2017-05-01 08:28:10 +02:00
Ryan Macnak c49420ca65 [gardening] Mark service/contexts_test as failing with -cdartk.
Issue #29513

Review-Url: https://codereview.chromium.org/2844803006 .
2017-04-28 13:22:02 -07:00
Tomáš Szabo f27b6cc11f Fixed compacted allocation profile in Observatory (#29301)
Fixed situation when compacted heap space contain a wrong data.
2017-04-26 09:51:42 -07:00
Florian Loitsch 902bb48908 Mark get_isolate_rpc_test as flaky.
Review-Url: https://codereview.chromium.org/2842763002 .
2017-04-25 15:20:07 +02:00
Erik Corry 4b9bba55b4 Stoppp using trippple consonants
R=ahe@google.com
BUG=

Review-Url: https://codereview.chromium.org/2833073002 .
2017-04-21 17:50:13 +02:00
Jacob Richman b67e83eea3 Format all remaining unformatted runtime files other than multitests.
BUG=
R=johnmccutchan@google.com

Review-Url: https://codereview.chromium.org/2829463003 .
2017-04-18 15:34:03 -07:00