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

Side by Side Diff: runtime/vm/os.h

Issue 109803002: Profiler Take 2 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/native_symbol_win.cc ('k') | runtime/vm/os_android.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 VM_OS_H_ 5 #ifndef VM_OS_H_
6 #define VM_OS_H_ 6 #define VM_OS_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 9
10 // Forward declarations. 10 // Forward declarations.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Returns the stack size limit. 78 // Returns the stack size limit.
79 static uword GetStackSizeLimit(); 79 static uword GetStackSizeLimit();
80 80
81 // Returns number of available processor cores. 81 // Returns number of available processor cores.
82 static int NumberOfAvailableProcessors(); 82 static int NumberOfAvailableProcessors();
83 83
84 // Sleep the currently executing thread for millis ms. 84 // Sleep the currently executing thread for millis ms.
85 static void Sleep(int64_t millis); 85 static void Sleep(int64_t millis);
86 86
87 // Sleep the currently executing thread for micros microseconds.
88 static void SleepMicros(int64_t micros);
89
87 // Debug break. 90 // Debug break.
88 static void DebugBreak(); 91 static void DebugBreak();
89 92
90 // Not all platform support strndup. 93 // Not all platform support strndup.
91 static char* StrNDup(const char* s, intptr_t n); 94 static char* StrNDup(const char* s, intptr_t n);
92 95
93 // Print formatted output to stdout/stderr for debugging. 96 // Print formatted output to stdout/stderr for debugging.
94 static void Print(const char* format, ...) PRINTF_ATTRIBUTE(1, 2); 97 static void Print(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
95 static void PrintErr(const char* format, ...) PRINTF_ATTRIBUTE(1, 2); 98 static void PrintErr(const char* format, ...) PRINTF_ATTRIBUTE(1, 2);
96 static void VFPrint(FILE* stream, const char* format, va_list args); 99 static void VFPrint(FILE* stream, const char* format, va_list args);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 static void Shutdown(); 137 static void Shutdown();
135 138
136 static void Abort(); 139 static void Abort();
137 140
138 static void Exit(int code); 141 static void Exit(int code);
139 }; 142 };
140 143
141 } // namespace dart 144 } // namespace dart
142 145
143 #endif // VM_OS_H_ 146 #endif // VM_OS_H_
OLDNEW
« no previous file with comments | « runtime/vm/native_symbol_win.cc ('k') | runtime/vm/os_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698