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

Unified Diff: runtime/vm/os_macos.cc

Issue 1962613003: Implement OS::GetCurrentThreadCPUMicros for iOS (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_macos.cc
diff --git a/runtime/vm/os_macos.cc b/runtime/vm/os_macos.cc
index 00f96a400f33efbf6febceed1e6131c4ed702db9..6d2d02ac1ffdb59bd3233aa9023d7d43e465a786 100644
--- a/runtime/vm/os_macos.cc
+++ b/runtime/vm/os_macos.cc
@@ -140,10 +140,6 @@ int64_t OS::GetCurrentMonotonicMicros() {
int64_t OS::GetCurrentThreadCPUMicros() {
-#if TARGET_OS_IOS
- // TODO(johnmccutchan): Implement this. No implementation exists in base.
- return -1;
-#else
mach_msg_type_number_t count = THREAD_BASIC_INFO_COUNT;
thread_basic_info_data_t info_data;
thread_basic_info_t info = &info_data;
@@ -161,7 +157,6 @@ int64_t OS::GetCurrentThreadCPUMicros() {
thread_cpu_micros += info->user_time.microseconds;
thread_cpu_micros += info->system_time.microseconds;
return thread_cpu_micros;
-#endif // TARGET_OS_IOS
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698