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

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

Issue 2613283002: Fuchsia: Use new call to get thread CPU time (Closed)
Patch Set: Delete dead code Created 3 years, 11 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/thread.h » ('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) 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 #include <fcntl.h> 5 #include <fcntl.h>
6 #include <launchpad/launchpad.h> 6 #include <launchpad/launchpad.h>
7 #include <launchpad/vmo.h> 7 #include <launchpad/vmo.h>
8 #include <magenta/status.h> 8 #include <magenta/status.h>
9 #include <magenta/syscalls.h> 9 #include <magenta/syscalls.h>
10 #include <magenta/syscalls/object.h> 10 #include <magenta/syscalls/object.h>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 "IsolateReload_PendingConstructorCall_ConcreteToAbstract", 75 "IsolateReload_PendingConstructorCall_ConcreteToAbstract",
76 "IsolateReload_PendingUnqualifiedCall_InstanceToStatic", 76 "IsolateReload_PendingUnqualifiedCall_InstanceToStatic",
77 "IsolateReload_PendingStaticCall_DefinedToNSM", 77 "IsolateReload_PendingStaticCall_DefinedToNSM",
78 "IsolateReload_PendingStaticCall_NSMToDefined", 78 "IsolateReload_PendingStaticCall_NSMToDefined",
79 "ArrayNew_Overflow_Crash", 79 "ArrayNew_Overflow_Crash",
80 "SNPrint_BadArgs", 80 "SNPrint_BadArgs",
81 }; 81 };
82 82
83 // Bugs to fix, or things that are not yet implemented. 83 // Bugs to fix, or things that are not yet implemented.
84 const char* kBugs[] = { 84 const char* kBugs[] = {
85 // Need OS::GetCurrentThreadCPUMicros.
86 "Timeline_Dart_TimelineGetTraceOnlyDartEvents",
87 "Timeline_Dart_TimelineGetTraceWithDartEvents",
88 "Timeline_Dart_GlobalTimelineGetTrace",
89 "TimelineEventDuration",
90 "TimelineEventDurationPrintJSON",
91 "TimelineEventArguments",
92 "TimelineEventArgumentsPrintJSON",
93 "TimelineEventCallbackRecorderBasic",
94 "TimelineAnalysis_ThreadBlockCount",
95 "TimelineRingRecorderJSONOrder",
96 "TimelinePauses_BeginEnd",
97 "Timeline_Dart_TimelineGetTrace",
98 "Timeline_Dart_TimelineGetTraceGlobalOverride",
99 "Timeline_Dart_GlobalTimelineGetTrace_Threaded",
100
101 // Need VirtualMemory reservation with mmap.
102 "ArrayLengthMaxElements",
103 "Int8ListLengthMaxElements",
104
105 // Assumes initial thread's stack is the same size as spawned thread stacks. 85 // Assumes initial thread's stack is the same size as spawned thread stacks.
106 "StackOverflowStackTraceInfo", 86 "StackOverflowStackTraceInfo",
107 }; 87 };
108 // clang-format on 88 // clang-format on
109 89
110 static bool contains(const char** list, intptr_t len, const char* str) { 90 static bool contains(const char** list, intptr_t len, const char* str) {
111 for (intptr_t i = 0; i < len; i++) { 91 for (intptr_t i = 0; i < len; i++) {
112 if (strcmp(list[i], str) == 0) { 92 if (strcmp(list[i], str) == 0) {
113 return true; 93 return true;
114 } 94 }
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 RETURN_IF_ERROR(status); 424 RETURN_IF_ERROR(status);
445 425
446 // Complain if we didn't try to run all of the tests. 426 // Complain if we didn't try to run all of the tests.
447 if (test_list_index != lines_count) { 427 if (test_list_index != lines_count) {
448 fprintf(stderr, "Failed to attempt all the tests!\n"); 428 fprintf(stderr, "Failed to attempt all the tests!\n");
449 fflush(0); 429 fflush(0);
450 return -1; 430 return -1;
451 } 431 }
452 return 0; 432 return 0;
453 } 433 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698