Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: runtime/vm/isolate.cc

Issue 1232193003: Provide stdout and stderr output in the Observatory debugger. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: before commit Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/isolate.h" 5 #include "vm/isolate.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/json.h" 9 #include "platform/json.h"
10 #include "vm/code_observers.h" 10 #include "vm/code_observers.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 } else { 478 } else {
479 ASSERT(result.IsNull()); 479 ASSERT(result.IsNull());
480 } 480 }
481 } 481 }
482 delete message; 482 delete message;
483 return success; 483 return success;
484 } 484 }
485 485
486 486
487 void IsolateMessageHandler::NotifyPauseOnStart() { 487 void IsolateMessageHandler::NotifyPauseOnStart() {
488 if (Service::NeedsDebugEvents()) { 488 if (Service::debug_stream.enabled()) {
489 StartIsolateScope start_isolate(isolate()); 489 StartIsolateScope start_isolate(isolate());
490 StackZone zone(I); 490 StackZone zone(I);
491 HandleScope handle_scope(I); 491 HandleScope handle_scope(I);
492 ServiceEvent pause_event(isolate(), ServiceEvent::kPauseStart); 492 ServiceEvent pause_event(isolate(), ServiceEvent::kPauseStart);
493 Service::HandleEvent(&pause_event); 493 Service::HandleEvent(&pause_event);
494 } 494 }
495 } 495 }
496 496
497 497
498 void IsolateMessageHandler::NotifyPauseOnExit() { 498 void IsolateMessageHandler::NotifyPauseOnExit() {
499 if (Service::NeedsDebugEvents()) { 499 if (Service::debug_stream.enabled()) {
500 StartIsolateScope start_isolate(isolate()); 500 StartIsolateScope start_isolate(isolate());
501 StackZone zone(I); 501 StackZone zone(I);
502 HandleScope handle_scope(I); 502 HandleScope handle_scope(I);
503 ServiceEvent pause_event(isolate(), ServiceEvent::kPauseExit); 503 ServiceEvent pause_event(isolate(), ServiceEvent::kPauseExit);
504 Service::HandleEvent(&pause_event); 504 Service::HandleEvent(&pause_event);
505 } 505 }
506 } 506 }
507 507
508 508
509 #if defined(DEBUG) 509 #if defined(DEBUG)
(...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after
2098 serialized_message_, serialized_message_len_); 2098 serialized_message_, serialized_message_len_);
2099 } 2099 }
2100 2100
2101 2101
2102 void IsolateSpawnState::Cleanup() { 2102 void IsolateSpawnState::Cleanup() {
2103 SwitchIsolateScope switch_scope(I); 2103 SwitchIsolateScope switch_scope(I);
2104 Dart::ShutdownIsolate(); 2104 Dart::ShutdownIsolate();
2105 } 2105 }
2106 2106
2107 } // namespace dart 2107 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698