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

Side by Side Diff: runtime/bin/process.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/main.cc ('k') | runtime/bin/process.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) 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
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
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_
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698