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

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

Issue 2997013002: Refactor of the GetEmbedderInformation APIs (Closed)
Patch Set: Address comments Created 3 years, 4 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/bin/process.cc ('k') | runtime/vm/service.cc » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 RUNTIME_INCLUDE_DART_TOOLS_API_H_ 5 #ifndef RUNTIME_INCLUDE_DART_TOOLS_API_H_
6 #define RUNTIME_INCLUDE_DART_TOOLS_API_H_ 6 #define RUNTIME_INCLUDE_DART_TOOLS_API_H_
7 7
8 #include "dart_api.h" 8 #include "dart_api.h"
9 9
10 /** \mainpage Dart Tools Embedding API Reference 10 /** \mainpage Dart Tools Embedding API Reference
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 * reporting purposes. 770 * reporting purposes.
771 * 771 *
772 * The pointers in this structure are not going to be cached or freed by the VM. 772 * The pointers in this structure are not going to be cached or freed by the VM.
773 */ 773 */
774 774
775 #define DART_EMBEDDER_INFORMATION_CURRENT_VERSION (0x00000001) 775 #define DART_EMBEDDER_INFORMATION_CURRENT_VERSION (0x00000001)
776 776
777 typedef struct { 777 typedef struct {
778 int32_t version; 778 int32_t version;
779 const char* name; // [optional] The name of the embedder 779 const char* name; // [optional] The name of the embedder
780 uintptr_t current_rss; // [optional] the current RSS of the embedder 780 int64_t current_rss; // [optional] the current RSS of the embedder
781 uintptr_t max_rss; // [optional] the maximum RSS of the embedder 781 int64_t max_rss; // [optional] the maximum RSS of the embedder
782 } Dart_EmbedderInformation; 782 } Dart_EmbedderInformation;
783 783
784 /** 784 /**
785 * Callback provided by the embedder that is used by the vm to request 785 * Callback provided by the embedder that is used by the vm to request
786 * information. 786 * information.
787 * 787 *
788 * \return Returns a pointer to a Dart_EmbedderInformation structure. 788 * \return Returns a pointer to a Dart_EmbedderInformation structure.
789 * The embedder keeps the ownership of the structure and any field in it. 789 * The embedder keeps the ownership of the structure and any field in it.
790 * The embedder must ensure that the structure will remain valid until the 790 * The embedder must ensure that the structure will remain valid until the
791 * next invokation of the callback. 791 * next invokation of the callback.
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 * \param start_recording See Dart_EmbedderTimelineStartRecording. 1063 * \param start_recording See Dart_EmbedderTimelineStartRecording.
1064 * \param stop_recording See Dart_EmbedderTimelineStopRecording. 1064 * \param stop_recording See Dart_EmbedderTimelineStopRecording.
1065 * 1065 *
1066 * NOTE: To avoid races, this should be called before Dart_Initialize. 1066 * NOTE: To avoid races, this should be called before Dart_Initialize.
1067 */ 1067 */
1068 DART_EXPORT void Dart_SetEmbedderTimelineCallbacks( 1068 DART_EXPORT void Dart_SetEmbedderTimelineCallbacks(
1069 Dart_EmbedderTimelineStartRecording start_recording, 1069 Dart_EmbedderTimelineStartRecording start_recording,
1070 Dart_EmbedderTimelineStopRecording stop_recording); 1070 Dart_EmbedderTimelineStopRecording stop_recording);
1071 1071
1072 #endif // RUNTIME_INCLUDE_DART_TOOLS_API_H_ 1072 #endif // RUNTIME_INCLUDE_DART_TOOLS_API_H_
OLDNEW
« no previous file with comments | « runtime/bin/process.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698