Commit Graph

18 Commits

Author SHA1 Message Date
John McCutchan 3442cad286 Decrease Dart binary size by 1.7MB
- Add flag to enable zlib compression of resources to create_resource.py
- Enable flag for Observatory resources
- Use 'dart:io' ZlibCodec to decompress resources when first loaded into service isolate.
- Dart executable (debug, macos) goes from 15,460b to 13,752b

R=asiva@google.com

Review URL: https://codereview.chromium.org//1151743002
2015-05-21 13:35:11 -07:00
johnmccutchan@google.com 261200c587 Build Observatory as part of runtime
Relanding https://codereview.chromium.org/810623005/

Review URL: https://codereview.chromium.org//837723004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42645 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-06 21:59:42 +00:00
whesse@google.com aa5a986d5d Revert "Build Observatory with runtime"
This reverts commit 76df7b3c1bf83c08d3994d61df4c9c530fadb4e5.
This commit breaks dartium compilation.

BUG=
R=ricow@google.com

Review URL: https://codereview.chromium.org//839543002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42619 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-06 10:07:58 +00:00
johnmccutchan@google.com 9d6ac72b46 1) Remove prebuilt Observatory sources
2) Move observatory from runtime/bin/vmservice/observatory to runtime/observatory

3) Add two tools scripts:
- tools/run_pub.py (runs pub before SDK is built)
- tools/obs_tool.py (helper for get, build, and deploy stages)

4) Build Observatory with runtime:
- pub get --offline
- pub build
- deploy

5) Build artifacts are now in standard output directory, for example, out/DebugIA32/observatory.

6) Add a new 'dart_boostrap' host target (no snapshot, no observatory) that can be used as the Dart executable to run pub when building Observatory. This is behind a build.py flag --use-bootstrap-for-observatory because:

- It is only necessary on older Linux distributions that are incompatible with the prebuilt Dart testing executable.
- running pub build with the boostrap Debug build is significantly slower.

7) Detect if the prebuilt executable doesn't work and automatically switch to the 'dart_bootstrap' executable. Also, warn the user and provide a Wiki link with more information.

R=turnidge@google.com

Review URL: https://codereview.chromium.org//810623005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42614 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-05 21:26:52 +00:00
johnmccutchan@google.com 55a0bed8dc Rewrite Windows path separator to be Unix path separator in Observatory resource bundle
BUG=
R=turnidge@google.com

Review URL: https://codereview.chromium.org//317873003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37031 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-05 16:01:27 +00:00
johnmccutchan@google.com db018bba6e Do not include DevTools version of Observatory with standalone VM
BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org//310153003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36941 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-03 20:50:12 +00:00
johnmccutchan@google.com dc7d4ce90a Upgrade Observatory to Polymer 0.10.x
R=turnidge@google.com

Review URL: https://codereview.chromium.org//299823004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36544 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-23 07:10:12 +00:00
johnmccutchan@google.com 36df45cd9b Replace '\' with '' in resources table
BUG=
R=vsm@google.com

Review URL: https://codereview.chromium.org//160253006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32609 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 17:26:27 +00:00
johnmccutchan@google.com 943103d555 Replace Windows path separators with underscore
BUG=

Review URL: https://codereview.chromium.org//153493004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32519 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-10 21:21:45 +00:00
johnmccutchan@google.com c76b6eb1c2 Split service into VM and embedder specific bits.
Move most service sources into the VM.

R=asiva@google.com

Review URL: https://codereview.chromium.org//125103004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31809 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-14 22:34:43 +00:00
cbracken@google.com 22628ce31f Output character literals rather than ints in create_resources.py
Fixes the following class of errors under gcc 4.8:
out/ReleaseX64/obj/gen/resources_gen.cc:3074:1: error: narrowing conversion of ‘137’ from ‘int’ to ‘const char’ inside { } is ill-formed in C++11 [-Werror=narrowing]

BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org//26969005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28752 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 21:31:21 +00:00
johnmccutchan@google.com cb7711eaa3 Reorganize VM Service client.
This CL is largely a move/rename of the sources so they are laid out in the standard directory layout (the other layout is no longer necessary with the single html and js file deployed output). Buried inside the rename is the out/ directory which contains the observatory deployed as a single js file + html/img assets.

bootstrap_css DEPS have been updated already.

R=iposva@google.com

Review URL: https://codereview.chromium.org//27530002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28740 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-16 17:49:33 +00:00
johnmccutchan@google.com 2786add1ea Initial GUI for VM service
R=asiva@google.com

Review URL: https://codereview.chromium.org//24844002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28462 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-10 16:36:03 +00:00
johnmccutchan@google.com 7fec0190f5 Revert 28422
BUG=

Review URL: https://codereview.chromium.org//26686005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28426 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 22:24:21 +00:00
johnmccutchan@google.com 209d858d4d Initial GUI for VM service
R=asiva@google.com

Review URL: https://codereview.chromium.org//24844002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28422 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-09 21:57:33 +00:00
johnmccutchan@google.com 0c3da8089d Replace - with _ when mapping from filename to C symbol name
BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org//24642005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27966 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-26 18:24:44 +00:00
smok@google.com ebbc2020a2 Put everything in runtime/bin into '::dart::bin' namespace.
Review URL: https://codereview.chromium.org//14341015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22032 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 14:22:30 +00:00
tball@google.com 9e3a61f149 Added support for "bin-ified" resources, used to link the vmstats
web app files into the VM binary. create_resources.py takes a list
of resources and writes each as a byte array, then builds a resource
table. resources.h defines a simple lookup for these arrays, which
vmstats uses.
Review URL: https://codereview.chromium.org//12377099

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19569 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-06 17:48:53 +00:00