koda@google.com
9280007de5
Limit canvas height in heap map.
...
Apparently many broswers fail to display a canvas taller than 6K-8K pixels.
This is a stop-gap solution that stops loading pages when max height has
been reached, and displays the correct total count for the user.
Longer-term, we should provide a less detailed, high-level view for huge heaps.
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//330333004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37366 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-16 17:09:23 +00:00
lrn@google.com
31eeb6caf2
Revert "New, more validating, parser for URI." and follow-up patches.
...
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//337033003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37359 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-16 12:32:35 +00:00
lrn@google.com
7c9b3a3bdd
Another case of the VM getting a path into Uri.parse.
...
Committed: https://code.google.com/p/dart/source/detail?r=37354
Committed: https://code.google.com/p/dart/source/detail?r=37356
Review URL: https://codereview.chromium.org//333283002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37358 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-16 11:39:08 +00:00
lrn@google.com
cf354f55a9
Another case of the VM getting a path into Uri.parse.
...
Committed: https://code.google.com/p/dart/source/detail?r=37354
Review URL: https://codereview.chromium.org//333283002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37356 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-16 11:18:32 +00:00
lrn@google.com
a1de66e743
Another case of the VM getting a path into Uri.parse.
...
Review URL: https://codereview.chromium.org//333283002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37354 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-16 11:11:40 +00:00
lrn@google.com
6ad8f0c920
Another case of VM using Uri.resolve on something not a URI reference.
...
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//339563003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37353 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-16 10:16:08 +00:00
lrn@google.com
0675e78d5b
Remove another case of _sanitizeWindowsPath before Uri.file
...
Remove the now unused function as well.
Review URL: https://codereview.chromium.org//338783002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37351 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-16 09:19:42 +00:00
lrn@google.com
ff80d6e997
Remove extra windows-char-sanitization, duplicationg and breaking the one in Uri.file.
...
Review URL: https://codereview.chromium.org//335093002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37349 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-16 08:06:52 +00:00
lrn@google.com
c7d98e335b
New, more validating, parser for URI.
...
BUG= https://code.google.com/p/dart/issues/detail?id=16081
R=ajohnsen@google.com , fschneider@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//321543003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37346 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-16 07:00:22 +00:00
hausner@google.com
4eac05607f
Lazy loading of deferred libraries
...
Defer reading of source code of deferred libraries until the
Dart code executes the loadLibrary() call.
R=iposva@google.com
Review URL: https://codereview.chromium.org//328923002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37334 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-13 22:43:31 +00:00
johnmccutchan@google.com
ee66efac38
Upgrade to polymer_expressions 0.11.1
...
R=iposva@google.com
Review URL: https://codereview.chromium.org//322243002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37204 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-10 22:04:23 +00:00
ajohnsen@google.com
cdaf11dc9d
Don't use kFSEventStreamCreateFlagNoDefer as it messes with event flushing.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//321133002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37171 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-10 10:44:20 +00:00
ajohnsen@google.com
b908de9ec0
Add HttpServerConnection to Observatory.
...
BUG=
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//302173007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37166 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-10 07:33:37 +00:00
ajohnsen@google.com
8719f3834b
Add Observatory test of io.
...
Initially a single test of a HttpServer. More will follow.
This also fixes the case where we don't 'block' when binding to a
ServerSocket. We should not close until the socket is explicitly closed.
BUG=
R=johnmccutchan@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//311153003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37164 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-10 07:13:52 +00:00
ajohnsen@google.com
cee2d6e82e
Correctly truncate in Windows eventhandler.
...
BUG=
R=sgjesse@google.com
Review URL: https://codereview.chromium.org//323823002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37163 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-10 07:12:52 +00:00
iposva@google.com
551e5f845a
- Report CodeSize instead of runtime for benchmarks reporting snapshot sizes.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//314383002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37156 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-10 05:20:52 +00:00
johnmccutchan@google.com
045bc93c93
Regenerate Observatory JS
...
Forgot to regenerate for: https://codereview.chromium.org/322483005
Review URL: https://codereview.chromium.org//320233005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37128 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-09 18:08:41 +00:00
johnmccutchan@google.com
f181f240e4
Final Observatory 1.5 fixes
...
- Don't request the empty path from service.
- Don't replace the url path (Fixes Dartium).
- Disable dart:io link until UI is completed.
- Disable back and forward buttons because they act weird in DevTools.
R=turnidge@google.com
Review URL: https://codereview.chromium.org//322483005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37125 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-09 18:04:38 +00:00
vegorov@google.com
d30ecd3fcd
Fix Win64 build of Dart VM.
...
1. Build script tools/build.py now actually builds X64 target when x64
is passed as an architecture:
- GYP files set 'msvs_configuration_platform': 'x64' for Win_x64
configuration;
- NSS related files are fixed to have correct set of defines for ia32
and x64 builds and include right files. A os_windows.c file added to
work-around inability to have different sets of source files per
configuration. Originally this was controlled through target_arch GYP
define and required regeneration of the solution.
- build.py passes Win32 or x64 platform to devenv as part of build
configuration argument;
2. Dart VM now supports Win64 ABI. ABI description is moved into a
separate class CallingConventions in constants_x64.h.
BUG=http://dartbug.com/7792
R=iposva@google.com , ricow@google.com , srdjan@google.com
Review URL: https://codereview.chromium.org//317773002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37078 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-06 12:14:15 +00:00
iposva@google.com
1d2085e773
- Fix truncation in Socket calls.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//312343002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37037 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-05 17:33:52 +00:00
srdjan@google.com
f4a625f895
Do not write protect code when running standalone. Improves startup performance.
...
R=asiva@google.com
Review URL: https://codereview.chromium.org//312313002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37032 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-05 16:56:46 +00:00
ajohnsen@google.com
9ddf98ffb8
Mark handle as invalid, when datagram socket is closed.
...
BUG=
Review URL: https://codereview.chromium.org//315173003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37030 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-05 15:56:59 +00:00
johnmccutchan@google.com
c94e8b090a
Redo LocationManager to use HTML5 History API
...
Make a Class ServiceObject
Introduce application Panes
Intercept all "application link" click events and manually dispatch them to LocationManager.
Add <nav-control> that adds back and forward buttons
Rolled in:
* https://codereview.chromium.org/306723002
* Revert to HttpVM
R=turnidge@google.com
Review URL: https://codereview.chromium.org//308673012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37014 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-04 21:01:02 +00:00
ajohnsen@google.com
58e0c32205
Don't issue new directory reads, if we already got unhandled data.
...
BUG=
Review URL: https://codereview.chromium.org//319503005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37006 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-04 18:50:40 +00:00
ajohnsen@google.com
90db41af31
Fix previous fix, by still making 'handle' the socket.
...
BUG=
Review URL: https://codereview.chromium.org//316813006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36999 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-04 15:56:47 +00:00
ajohnsen@google.com
f8d735521c
Don't use same value for socket() and handle(), as they are different concepts.
...
BUG=
R=kasperl@google.com
Review URL: https://codereview.chromium.org//313083004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36995 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-04 14:16:50 +00:00
ajohnsen@google.com
69a7b746ef
Fix double-closing of handles in Windows EventHandler.
...
BUG=
R=kasperl@google.com
Review URL: https://codereview.chromium.org//315003002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36991 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-04 11:53:53 +00:00
ajohnsen@google.com
146f95135e
Use 'Directory.watch' on Windows in pkg/watcher, instead of pooling.
...
This is a close copy of MacOS, except for the special handling on mac, and the extra watcher on Windows for detecting if the watched folder is deleted.
BUG=https://code.google.com/p/dart/issues/detail?id=14428,https://code.google.com/p/dart/issues/detail?id=18108,http://code.google.com/p/dart/issues/detail?id=19189
R=kasperl@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//312743002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36988 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-04 10:23:32 +00:00
johnmccutchan@google.com
f689c775dc
Remove polymer source maps from standalone VM Observatory build
...
BUG=
R=asiva@google.com
Review URL: https://codereview.chromium.org//309343005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36946 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-03 21:18:08 +00:00
turnidge@google.com
40d6a1de87
Observatory now uses websockets to communicate with the vm.
...
- Added WebSocketVM class.
- Changed the vmservice websocket request format from:
path: ['this', 'is', 'the', 'old]
to:
request: 'this/is/the/new'
- Updated tests.
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//305603004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36894 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-02 19:56:03 +00:00
ajohnsen@google.com
8b612e8780
Add read/write stats to Socket and RandomAccessFile.
...
BUG=
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//298353002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36738 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-28 13:29:51 +00:00
johnmccutchan@google.com
f5d6c4106e
Fix test breakage in socket_patch.dart
...
Review URL: https://codereview.chromium.org//307553008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36736 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-28 11:45:29 +00:00
johnmccutchan@google.com
e46aa81943
Create a ServiceObject for a socket
...
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//303673009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36735 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-28 11:25:12 +00:00
johnmccutchan@google.com
1f62dad54d
Add Proces owner of socket and fix printing of non-network sockets
...
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//300883002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36729 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-28 07:15:02 +00:00
turnidge@google.com
8db11b79ac
Show flags in Observatory.
...
Add vm support for setting flags through vm service (UI coming soon).
e.g.
http://127.0.0.1:8181/#/flags/set?name=some_flag&value=100
--
I reworked the Flags class to use a growing array rather than a linked list to store flags. This means that we don't need to go through the hassle of building an array and sorting every time that we print/printjson.
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//299143007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36712 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 21:27:17 +00:00
zra@google.com
9c73009ff9
Prepares for arm64 cross-build.
...
With this change, the cross-build succeeds with the Linaro arm64 toolchain.
R=regis@google.com
Review URL: https://codereview.chromium.org//303443010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36698 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 18:05:20 +00:00
ajohnsen@google.com
9c7979ed1f
Add 'owner' field to sockets, that point to a potential IO resource using that Socket.
...
BUG=
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//304513004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36680 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 14:10:31 +00:00
ajohnsen@google.com
217e8b8605
Add WebSockets to Observatory.
...
BUG=
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//300043011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36667 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 11:37:51 +00:00
johnmccutchan@google.com
a71fa873b1
Add processes to Observatory
...
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//307503002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36665 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 11:20:30 +00:00
johnmccutchan@google.com
1bedb4d267
Auto expand first profiler row when it has no siblings
...
BUG
R=iposva@google.com
Review URL: https://codereview.chromium.org//301653004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36660 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 09:58:00 +00:00
ajohnsen@google.com
7aed60d005
Show actualy FD for files in Observatory.
...
BUG=
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//296403005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36656 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 09:18:43 +00:00
ajohnsen@google.com
3218f34433
Add 'Sockets' to observatory.
...
BUG=
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//293363007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36650 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 07:49:47 +00:00
johnmccutchan@google.com
2acd1f8c5b
Fix error message with --observe flag
...
BUG=
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//301643003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36649 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 07:40:17 +00:00
johnmccutchan@google.com
c57e2b0d40
Add --observe flag alias
...
BUG=
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//305473002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36648 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 07:26:05 +00:00
ajohnsen@google.com
44d8df4bb4
Add Socket ref to HttpServer.
...
BUG=
R=johnmccutchan@google.com
Review URL: https://codereview.chromium.org//297213005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36644 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 06:38:15 +00:00
johnmccutchan@google.com
19efb28eab
Add initial Random Access File information to Observatory
...
BUG=
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//291343009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36638 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-26 15:34:31 +00:00
johnmccutchan@google.com
6feeee1c30
Upgrade to Polymer 0.10.0-pre.13
...
BUG=
R=ajohnsen@google.com
Review URL: https://codereview.chromium.org//297143005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36636 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-26 14:10:48 +00:00
johnmccutchan@google.com
b3f2fb14d0
Reduce CPU usage when no isolates need to be profiled (e.g. when an isolate calls readLineSync or sleep the isolate owns the thread but is blocked).
...
This CL does the following:
- Introduces two new API entry points: Dart_IsolateBlocked and Dart_IsolateUnblocked.
- The thread interrupter thread goes into a deep sleep if no isolates need to be profiled (not scheduled on a thread or are in a blocking call).
- When an isolate unblocks, the thread interrupter thread resumes regular interrupts.
- dart:io readLineSync and sleep mark that they are making a blocking call.
This fixes https://code.google.com/p/dart/issues/detail?id=18126 reducing CPU usage to 0% when waiting for stdin or sleeping.
R=ajohnsen@google.com , iposva@google.com
Review URL: https://codereview.chromium.org//297183003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36632 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-26 11:53:49 +00:00
srdjan@google.com
5f4b13607e
Do not Dart_RunLoop if --load_async=false. This allows the program to run to the end with --pause-isolates-on-exit --load-async=false.
...
R=hausner@google.com
Review URL: https://codereview.chromium.org//296713005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36595 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-23 22:37:57 +00:00
hausner@google.com
c6101ca4b5
First step towards asynchronous loading of sources. With this change, sources are read asynchronously in dart code (builtin.dart) and when the i/o future completes, a callback in the VM loads and compiles the script or library code.
...
In a next step, the i/o will be moved to the service isolate so that not all isolates have to import dart:io.
Fallout from this change:
1) Loading has become a tad slower. Will have to investigate why.
2) Errors that happen during loading (file not found, compilation error in an imported library) are no longer reported at the offending import clause. This can be fixed later if necessary by passing the import clause source location to the library tag handler.
Review URL: https://codereview.chromium.org//290713004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36575 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-23 17:43:14 +00:00