|
Service isolate requests Observatory assets from embedder
- Provide a new callback to Dart_Initialize that will be called when the service isolate needs the Observatory assets
- Move asset management code out of embedder and into common dart:_vmservice
- Use the tar format as the archive format
- Add build script to generate .cc file containing the archive
- Add a simple tar parser to service isolate
This makes it possible for embedders to not bake Observatory into their executable but instead load it off disk or over the network. The standalone embedder still links Observatory into the executable.
R=rmacnak@google.com
Committed: https://github.com/dart-lang/sdk/commit/2844eb86cac7358ccc6e638c3de41e293824098d
Total comments: 22
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+527 lines, -94 lines) |
Patch |
|
M |
runtime/bin/bin.gypi
|
View
|
|
11 chunks |
+38 lines, -5 lines |
0 comments
|
Download
|
|
M |
runtime/bin/dartutils.h
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/dartutils.cc
|
View
|
1
2
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/gen_snapshot.cc
|
View
|
1
2
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/bin/main.cc
|
View
|
1
2
|
2 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
|
A + |
runtime/bin/observatory_assets_empty.cc
|
View
|
1
2
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
runtime/bin/resources_sources.gypi
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
runtime/bin/run_vm_tests.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
D |
runtime/bin/vmservice/resources.dart
|
View
|
|
1 chunk |
+0 lines, -62 lines |
0 comments
|
Download
|
|
M |
runtime/bin/vmservice/server.dart
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
runtime/bin/vmservice/vmservice_io.dart
|
View
|
1
2
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
runtime/include/dart_api.h
|
View
|
1
|
3 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/lib/vmservice.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/lib/vmservice_patch.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
runtime/tools/create_archive.py
|
View
|
1
2
|
1 chunk |
+140 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/bootstrap_natives.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/dart.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_impl.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/service.h
|
View
|
|
3 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/service.cc
|
View
|
1
2
|
4 chunks |
+46 lines, -1 line |
0 comments
|
Download
|
|
A |
sdk/lib/vmservice/asset.dart
|
View
|
1
2
|
1 chunk |
+205 lines, -0 lines |
0 comments
|
Download
|
|
M |
sdk/lib/vmservice/vmservice.dart
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
sdk/lib/vmservice/vmservice_sources.gypi
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 8 (3 generated)
|