OLD | NEW |
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 RUNTIME_BIN_PROCESS_H_ | 5 #ifndef RUNTIME_BIN_PROCESS_H_ |
6 #define RUNTIME_BIN_PROCESS_H_ | 6 #define RUNTIME_BIN_PROCESS_H_ |
7 | 7 |
8 #include <errno.h> | 8 #include <errno.h> |
9 | 9 |
10 #include "bin/builtin.h" | 10 #include "bin/builtin.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // 'signal' for all Isolates. | 142 // 'signal' for all Isolates. |
143 static void ClearSignalHandler(intptr_t signal, Dart_Port port); | 143 static void ClearSignalHandler(intptr_t signal, Dart_Port port); |
144 static void ClearAllSignalHandlers(); | 144 static void ClearAllSignalHandlers(); |
145 | 145 |
146 static Dart_Handle GetProcessIdNativeField(Dart_Handle process, | 146 static Dart_Handle GetProcessIdNativeField(Dart_Handle process, |
147 intptr_t* pid); | 147 intptr_t* pid); |
148 static Dart_Handle SetProcessIdNativeField(Dart_Handle process, intptr_t pid); | 148 static Dart_Handle SetProcessIdNativeField(Dart_Handle process, intptr_t pid); |
149 | 149 |
150 static int64_t CurrentRSS(); | 150 static int64_t CurrentRSS(); |
151 static int64_t MaxRSS(); | 151 static int64_t MaxRSS(); |
| 152 static void GetRSSInformation(int64_t* max_rss, int64_t* current_rss); |
152 | 153 |
153 private: | 154 private: |
154 static int global_exit_code_; | 155 static int global_exit_code_; |
155 static Mutex* global_exit_code_mutex_; | 156 static Mutex* global_exit_code_mutex_; |
156 static ExitHook exit_hook_; | 157 static ExitHook exit_hook_; |
157 | 158 |
158 DISALLOW_ALLOCATION(); | 159 DISALLOW_ALLOCATION(); |
159 DISALLOW_IMPLICIT_CONSTRUCTORS(Process); | 160 DISALLOW_IMPLICIT_CONSTRUCTORS(Process); |
160 }; | 161 }; |
161 | 162 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 | 364 |
364 private: | 365 private: |
365 DISALLOW_COPY_AND_ASSIGN(BufferList); | 366 DISALLOW_COPY_AND_ASSIGN(BufferList); |
366 }; | 367 }; |
367 #endif // defined(HOST_OS_ANDROID) ... | 368 #endif // defined(HOST_OS_ANDROID) ... |
368 | 369 |
369 } // namespace bin | 370 } // namespace bin |
370 } // namespace dart | 371 } // namespace dart |
371 | 372 |
372 #endif // RUNTIME_BIN_PROCESS_H_ | 373 #endif // RUNTIME_BIN_PROCESS_H_ |
OLD | NEW |