Commit Graph

22 Commits

Author SHA1 Message Date
William Hesse 9f3b5d8680 Update observatory_tool.py to remove package-root
BUG=
R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2346483007 .
2016-09-19 10:11:31 +02:00
Carlo Bernaschina 5177c2bca9 Removed polymer & mirror from Observatory
web_components are still necessary, but avoiding to use shadow dom
allows us to use the lite version

Closes=https://github.com/dart-lang/sdk/issues/27239
Closes=https://github.com/dart-lang/sdk/issues/27148
Closes=https://github.com/dart-lang/sdk/issues/26952

R=johnmccutchan@google.com, rmacnak@google.com

Review URL: https://codereview.chromium.org/2310003004 .
2016-09-07 14:15:27 -07:00
John McCutchan 7fc337d6f7 Silence observatory tool again
BUG=
R=zra@google.com

Review URL: https://codereview.chromium.org/1683903002 .
2016-02-09 14:17:00 -08:00
John McCutchan 524eae6c34 Use the absolute path when creating a stamp file
BUG=

Review URL: https://codereview.chromium.org/1671673002 .
2016-02-04 15:36:14 -08:00
John McCutchan 3bf51e0138 Fix unnecessary Observatory rebuilds in Flutter
The cause of the rebuilds was that in v 1.14, running `pub build` modifies pubspec.lock file (v 1.13 and below did not do this, bug filed #25688) resulting in unnecessary rebuilds.

- Remove two output build rules because they cause issues with Make.
- Write our own stamp file and use that instead of pubspec.lock.

R=zra@google.com

Review URL: https://codereview.chromium.org/1664403002 .
2016-02-04 13:23:50 -08:00
Ivan Posva 4f392df85e Fix some more shorten-64-to-32 warnings:
- Remove duplicate check for javascript integer overflow.
- Make sure the BitField class knows the type it is
  encoding into.

BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org/1644223006 .
2016-02-02 13:58:06 -08:00
Ivan Posva f5f035407f - Temporarily allow running with dart_bootstrap during the
Observatory build.

BUG=

Review URL: https://codereview.chromium.org/1526133002 .
2015-12-15 10:51:55 -08:00
Ivan Posva 6d0453594a - Prevent running of the dart_bootstrap script by default.
- Fix argument handling in Python: argparse does not properly handle booleans.

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/1519063004 .
2015-12-11 13:23:12 -08:00
John McCutchan dfe6528400 Silence pub --version tests
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1360283002 .
2015-09-23 14:16:04 -07:00
John McCutchan dca52b0eb1 Fix observatory_tool so it works in mojo tree again
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org//1360263002 .
2015-09-23 13:55:06 -07:00
John McCutchan eb3fe78200 Automatically set correct Observatory analytics version
R=turnidge@google.com

Review URL: https://codereview.chromium.org//1352493002 .
2015-09-16 10:47:19 -07:00
William Hesse 9aeb907f9d Observatory build should try backup method if the SDK doesn't work.
Fix up SDK for mips and arm processors on demand.

BUG=
R=iposva@google.com, johnmccutchan@google.com

Review URL: https://codereview.chromium.org//1343103002 .
2015-09-16 13:13:32 +02:00
John McCutchan 28a2239289 Move CheckedInSdkPath helpers to utils
BUG=
R=ricow@google.com

Review URL: https://codereview.chromium.org//1342493003 .
2015-09-14 07:05:51 -07:00
John McCutchan e07d9e8918 Use the checked in SDK to build Observatory
BUG=
R=turnidge@google.com

Review URL: https://codereview.chromium.org//1337503003 .
2015-09-10 11:15:41 -07:00
John McCutchan 021d7c0aa5 Make build incremental
- Make sure observatory's index.html is touched.
- Switch generate_snapshot_bin to have only one output (a timestamp file)

Fixes #24220

R=iposva@google.com, ricow@google.com

Review URL: https://codereview.chromium.org//1304953004 .
2015-08-27 11:14:13 -07:00
johnmccutchan@google.com 04945e367f Add --silent flag to observatory_tool.py
BUG=
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@45044 260f80e4-7a28-3924-810f-c04153c831b5
2015-04-09 23:29:03 +00:00
johnmccutchan@google.com 10bd89086e - Split observatory source list into separate gypi file.
- Update observatory_tool.py to support running against an SDK.

BUG=
R=zra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44794 260f80e4-7a28-3924-810f-c04153c831b5
2015-03-30 21:21:40 +00:00
johnmccutchan@google.com f2333f63a5 Add Function based profile tree
Profiler improvements:
- Track Functions in profile and build Function based trie
- Associate code objects with functions
- Created cpu_profile.dart library
- Major speed improvements for disassembly view
- Fix truncation of disassembly comments
- Ability to get code object ticks from disassembly view
- Inlining mini-map in disassembly view.
- Remove a bunch of unused data from profile service response
- In some cases a caller PC that is better than the PC marker is inserted into the stack trace
- Inlined functions are expanded
- Ability to clear profile
- New flag '--keep_code' which keeps deoptimized code around for use by the profiler.

General fixes:
- Fix caching in service library
- Remove pubspec.yaml before running pub get

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@44067 260f80e4-7a28-3924-810f-c04153c831b5
2015-02-26 18:48:55 +00:00
johnmccutchan@google.com 369bbcc3e5 Ensure build fails if Observatory fails to build
BUG=
R=turnidge@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42924 260f80e4-7a28-3924-810f-c04153c831b5
2015-01-15 18:46:29 +00: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