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

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

Issue 2822943002: [dart:io] Adds ProcessInfo.{max,current}Rss. Adds OS::MaxRSS on Fuchsia. (Closed)
Patch Set: Fix Fuchsia build Created 3 years, 8 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
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 static intptr_t CurrentProcessId(); 139 static intptr_t CurrentProcessId();
140 140
141 static intptr_t SetSignalHandler(intptr_t signal); 141 static intptr_t SetSignalHandler(intptr_t signal);
142 static void ClearSignalHandler(intptr_t signal); 142 static void ClearSignalHandler(intptr_t signal);
143 static void ClearAllSignalHandlers(); 143 static void ClearAllSignalHandlers();
144 144
145 static Dart_Handle GetProcessIdNativeField(Dart_Handle process, 145 static Dart_Handle GetProcessIdNativeField(Dart_Handle process,
146 intptr_t* pid); 146 intptr_t* pid);
147 static Dart_Handle SetProcessIdNativeField(Dart_Handle process, intptr_t pid); 147 static Dart_Handle SetProcessIdNativeField(Dart_Handle process, intptr_t pid);
148 148
149 static int64_t CurrentRSS();
150 static int64_t MaxRSS();
151
149 private: 152 private:
150 static int global_exit_code_; 153 static int global_exit_code_;
151 static Mutex* global_exit_code_mutex_; 154 static Mutex* global_exit_code_mutex_;
152 static ExitHook exit_hook_; 155 static ExitHook exit_hook_;
153 156
154 DISALLOW_ALLOCATION(); 157 DISALLOW_ALLOCATION();
155 DISALLOW_IMPLICIT_CONSTRUCTORS(Process); 158 DISALLOW_IMPLICIT_CONSTRUCTORS(Process);
156 }; 159 };
157 160
158 161
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 364
362 private: 365 private:
363 DISALLOW_COPY_AND_ASSIGN(BufferList); 366 DISALLOW_COPY_AND_ASSIGN(BufferList);
364 }; 367 };
365 #endif // defined(HOST_OS_ANDROID) ... 368 #endif // defined(HOST_OS_ANDROID) ...
366 369
367 } // namespace bin 370 } // namespace bin
368 } // namespace dart 371 } // namespace dart
369 372
370 #endif // RUNTIME_BIN_PROCESS_H_ 373 #endif // RUNTIME_BIN_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698