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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart

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
« no previous file with comments | « no previous file | runtime/bin/io_natives.cc » ('j') | runtime/bin/process_patch.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import 'dart:_js_helper' show patch; 5 import 'dart:_js_helper' show patch;
6 6
7 @patch 7 @patch
8 class _Directory { 8 class _Directory {
9 @patch 9 @patch
10 static _current() { 10 static _current() {
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 throw new UnsupportedError("ProcessUtils._pid"); 284 throw new UnsupportedError("ProcessUtils._pid");
285 } 285 }
286 286
287 @patch 287 @patch
288 static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { 288 static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) {
289 throw new UnsupportedError("ProcessUtils._watchSignal"); 289 throw new UnsupportedError("ProcessUtils._watchSignal");
290 } 290 }
291 } 291 }
292 292
293 @patch 293 @patch
294 class ProcessInfo {
295 @patch
296 static int get currentRss {
297 throw new UnsupportedError("ProcessInfo.currentRss");
298 }
299
300 @patch
301 static int get maxRss {
302 throw new UnsupportedError("ProcessInfo.maxRss");
303 }
304 }
305
306 @patch
294 class Process { 307 class Process {
295 @patch 308 @patch
296 static Future<Process> start(String executable, List<String> arguments, 309 static Future<Process> start(String executable, List<String> arguments,
297 {String workingDirectory, 310 {String workingDirectory,
298 Map<String, String> environment, 311 Map<String, String> environment,
299 bool includeParentEnvironment: true, 312 bool includeParentEnvironment: true,
300 bool runInShell: false, 313 bool runInShell: false,
301 ProcessStartMode mode: ProcessStartMode.NORMAL}) { 314 ProcessStartMode mode: ProcessStartMode.NORMAL}) {
302 throw new UnsupportedError("Process.start"); 315 throw new UnsupportedError("Process.start");
303 } 316 }
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 } 615 }
603 } 616 }
604 617
605 @patch 618 @patch
606 class _IOService { 619 class _IOService {
607 @patch 620 @patch
608 static Future _dispatch(int request, List data) { 621 static Future _dispatch(int request, List data) {
609 throw new UnsupportedError("_IOService._dispatch"); 622 throw new UnsupportedError("_IOService._dispatch");
610 } 623 }
611 } 624 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/io_natives.cc » ('j') | runtime/bin/process_patch.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698