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

Side by Side Diff: runtime/include/dart_api.h

Issue 297183003: Reduce CPU usage when no isolates need to be profiled. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef INCLUDE_DART_API_H_ 7 #ifndef INCLUDE_DART_API_H_
8 #define INCLUDE_DART_API_H_ 8 #define INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 2606 matching lines...) Expand 10 before | Expand all | Expand 10 after
2617 * \param object An object. 2617 * \param object An object.
2618 * \param peer A value to store in the peer field. 2618 * \param peer A value to store in the peer field.
2619 * 2619 *
2620 * \return Returns an error if 'object' is a subtype of Null, num, or 2620 * \return Returns an error if 'object' is a subtype of Null, num, or
2621 * bool. 2621 * bool.
2622 */ 2622 */
2623 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); 2623 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer);
2624 2624
2625 2625
2626 /* 2626 /*
2627 * ========
2628 * Profiler
2629 * ========
2630 */
2631
2632 /**
2633 * Disables profiler interrupts for the current isolate. Repeated calls to
2634 * Dart_BlockProfiler are allowed but must be paired with the same number of
2635 * calls to Dart_UnblockProfiler to unblock the profiler.
2636 */
2637 DART_EXPORT void Dart_BlockProfiler();
Ivan Posva 2014/05/25 12:25:16 This is not just related to the profiler. What we
Anders Johnsen 2014/05/25 18:36:34 +1, I like the more generic IsolateBlocked/Isolate
Cutch 2014/05/26 06:59:35 Done.
2638
2639 /**
2640 * Re-enables profiler interrupts for the current isolate.
2641 */
2642 DART_EXPORT void Dart_UnblockProfiler();
2643
2644
2645 /*
2627 * ======= 2646 * =======
2628 * Service 2647 * Service
2629 * ======= 2648 * =======
2630 */ 2649 */
2631 2650
2632 /** 2651 /**
2633 * Returns the Service isolate initialized and with the dart:vmservice library 2652 * Returns the Service isolate initialized and with the dart:vmservice library
2634 * loaded and booted. 2653 * loaded and booted.
2635 * 2654 *
2636 * This will call the embedder provided Dart_ServiceIsolateCreateCalback to 2655 * This will call the embedder provided Dart_ServiceIsolateCreateCalback to
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
2714 * NOTE: If multiple callbacks with the same name are registered, only the 2733 * NOTE: If multiple callbacks with the same name are registered, only the
2715 * last callback registered will be remembered. 2734 * last callback registered will be remembered.
2716 */ 2735 */
2717 DART_EXPORT void Dart_RegisterRootServiceRequestCallback( 2736 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
2718 const char* name, 2737 const char* name,
2719 Dart_ServiceRequestCallback callback, 2738 Dart_ServiceRequestCallback callback,
2720 void* user_data); 2739 void* user_data);
2721 2740
2722 2741
2723 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 2742 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698