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

Side by Side Diff: runtime/bin/dartutils.h

Issue 1412733008: Switch profiler from isolates to threads (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | runtime/include/dart_api.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef BIN_DARTUTILS_H_ 5 #ifndef BIN_DARTUTILS_H_
6 #define BIN_DARTUTILS_H_ 6 #define BIN_DARTUTILS_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "include/dart_native_api.h" 9 #include "include/dart_native_api.h"
10 10
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 } 574 }
575 575
576 private: 576 private:
577 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array); 577 DISALLOW_COPY_AND_ASSIGN(CObjectExternalUint8Array);
578 }; 578 };
579 579
580 580
581 class ScopedBlockingCall { 581 class ScopedBlockingCall {
582 public: 582 public:
583 ScopedBlockingCall() { 583 ScopedBlockingCall() {
584 Dart_IsolateBlocked(); 584 Dart_ThreadDisableProfiling();
585 } 585 }
586 586
587 ~ScopedBlockingCall() { 587 ~ScopedBlockingCall() {
588 Dart_IsolateUnblocked(); 588 Dart_ThreadEnableProfiling();
589 } 589 }
590 }; 590 };
591 591
592 } // namespace bin 592 } // namespace bin
593 } // namespace dart 593 } // namespace dart
594 594
595 #endif // BIN_DARTUTILS_H_ 595 #endif // BIN_DARTUTILS_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/include/dart_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698