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

Side by Side Diff: runtime/bin/io_natives.cc

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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #include "bin/io_natives.h" 5 #include "bin/io_natives.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "bin/builtin.h" 10 #include "bin/builtin.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 V(Process_Start, 11) \ 95 V(Process_Start, 11) \
96 V(Process_Wait, 5) \ 96 V(Process_Wait, 5) \
97 V(Process_KillPid, 2) \ 97 V(Process_KillPid, 2) \
98 V(Process_SetExitCode, 1) \ 98 V(Process_SetExitCode, 1) \
99 V(Process_GetExitCode, 0) \ 99 V(Process_GetExitCode, 0) \
100 V(Process_Exit, 1) \ 100 V(Process_Exit, 1) \
101 V(Process_Sleep, 1) \ 101 V(Process_Sleep, 1) \
102 V(Process_Pid, 1) \ 102 V(Process_Pid, 1) \
103 V(Process_SetSignalHandler, 1) \ 103 V(Process_SetSignalHandler, 1) \
104 V(Process_ClearSignalHandler, 1) \ 104 V(Process_ClearSignalHandler, 1) \
105 V(ProcessInfo_CurrentRSS, 0) \
106 V(ProcessInfo_MaxRSS, 0) \
105 V(SecureSocket_Connect, 7) \ 107 V(SecureSocket_Connect, 7) \
106 V(SecureSocket_Destroy, 1) \ 108 V(SecureSocket_Destroy, 1) \
107 V(SecureSocket_FilterPointer, 1) \ 109 V(SecureSocket_FilterPointer, 1) \
108 V(SecureSocket_GetSelectedProtocol, 1) \ 110 V(SecureSocket_GetSelectedProtocol, 1) \
109 V(SecureSocket_Handshake, 1) \ 111 V(SecureSocket_Handshake, 1) \
110 V(SecureSocket_Init, 1) \ 112 V(SecureSocket_Init, 1) \
111 V(SecureSocket_PeerCertificate, 1) \ 113 V(SecureSocket_PeerCertificate, 1) \
112 V(SecureSocket_RegisterBadCertificateCallback, 2) \ 114 V(SecureSocket_RegisterBadCertificateCallback, 2) \
113 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \ 115 V(SecureSocket_RegisterHandshakeCompleteCallback, 2) \
114 V(SecureSocket_Renegotiate, 4) \ 116 V(SecureSocket_Renegotiate, 4) \
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 struct NativeEntries* entry = &(IOEntries[i]); 206 struct NativeEntries* entry = &(IOEntries[i]);
205 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) { 207 if (reinterpret_cast<Dart_NativeFunction>(entry->function_) == nf) {
206 return reinterpret_cast<const uint8_t*>(entry->name_); 208 return reinterpret_cast<const uint8_t*>(entry->name_);
207 } 209 }
208 } 210 }
209 return NULL; 211 return NULL;
210 } 212 }
211 213
212 } // namespace bin 214 } // namespace bin
213 } // namespace dart 215 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698