dart-sdk/utils
Jens Johansen d854c77e58 [kernel] Only serialize non-external libaries and sources from those.
Previously the VM couldn't handle external libraries, but that was
fixed in 2f49198520.

Part of the CL was reverted though because the compilatin was changed
to using an outline instead of the platform which doesn't work.
What does work though, is not including the external libraries in the
output.

This CL makes the following changes:

* Don't include external libraries in the output (by not setting all
  libraries to be non-external).

* Only writes the sources actually used to the binary (i.e. whatever
  libraries left out because they were external will not contribute
  source code either).

* Cleanup of now unused code.


Timings (only run once though):


Without this CL (but with the CL it's based on):

$ time python tools/test.py -m release -cdartk language -j6
Test configuration: dartk_vm_release_x64
[05:43 | 100% | + 3504 | -    0]

real    5m43.597s
user    33m48.152s
sys     9m34.140s


Only the "utils/kernel-service/kernel-service.dart" part of this CL:

$ time python tools/test.py -m release -cdartk language -j6
Test configuration: dartk_vm_release_x64
[04:55 | 100% | + 3504 | -    0]

real    4m55.684s
user    29m54.360s
sys     8m7.408s


Entire CL:

$ time python tools/test.py -m release -cdartk language -j6
Test configuration: dartk_vm_release_x64
[04:20 | 100% | + 3504 | -    0]

real    4m20.416s
user    27m17.320s
sys     6m53.472s

Change-Id: Ie9c5bfa958e558a5007784e821a0b58d417bae55
Reviewed-on: https://dart-review.googlesource.com/3161
Reviewed-by: Samir Jindel <sjindel@google.com>
2017-09-06 11:56:24 +00:00
..
analysis_server [infra] Begin removing gyp 2017-08-04 22:19:35 -07:00
compiler [infra] Begin removing gyp 2017-08-04 22:19:35 -07:00
dartanalyzer [infra] Begin removing gyp 2017-08-04 22:19:35 -07:00
dartdevc [infra] Begin removing gyp 2017-08-04 22:19:35 -07:00
dartdoc [infra] Begin removing gyp 2017-08-04 22:19:35 -07:00
dartfmt [infra] Begin removing gyp 2017-08-04 22:19:35 -07:00
kernel-service [kernel] Only serialize non-external libaries and sources from those. 2017-09-06 11:56:24 +00:00
peg
pub [infra] Begin removing gyp 2017-08-04 22:19:35 -07:00
tests/peg Delete old tests that aren't used and/or useful any more. 2017-07-18 14:12:57 -07:00
application_snapshot.gni Allow caller of application_snapshot to override .packages. 2017-08-15 16:10:20 -07:00
create_timestamp.gni
generate_patch_sdk.gni Include platform.dill files in sdk builds 2017-07-26 14:50:49 -07:00