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

Side by Side Diff: runtime/bin/process_unsupported.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 #if defined(DART_IO_DISABLED) 5 #if defined(DART_IO_DISABLED)
6 6
7 #include "bin/process.h" 7 #include "bin/process.h"
8 8
9 #include "bin/builtin.h" 9 #include "bin/builtin.h"
10 #include "bin/dartutils.h" 10 #include "bin/dartutils.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 Dart_ThrowException( 85 Dart_ThrowException(
86 DartUtils::NewInternalError("Process is not supported on this platform")); 86 DartUtils::NewInternalError("Process is not supported on this platform"));
87 } 87 }
88 88
89 89
90 void FUNCTION_NAME(StringToSystemEncoding)(Dart_NativeArguments args) { 90 void FUNCTION_NAME(StringToSystemEncoding)(Dart_NativeArguments args) {
91 Dart_ThrowException( 91 Dart_ThrowException(
92 DartUtils::NewInternalError("Process is not supported on this platform")); 92 DartUtils::NewInternalError("Process is not supported on this platform"));
93 } 93 }
94 94
95
96 void FUNCTION_NAME(ProcessInfo_CurrentRSS)(Dart_NativeArguments args) {
97 Dart_ThrowException(
98 DartUtils::NewInternalError("Process is not supported on this platform"));
99 }
100
101
102 void FUNCTION_NAME(ProcessInfo_MaxRSS)(Dart_NativeArguments args) {
103 Dart_ThrowException(
104 DartUtils::NewInternalError("Process is not supported on this platform"));
105 }
106
95 } // namespace bin 107 } // namespace bin
96 } // namespace dart 108 } // namespace dart
97 109
98 #endif // !defined(DART_IO_DISABLED) 110 #endif // !defined(DART_IO_DISABLED)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698