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

Side by Side Diff: runtime/vm/thread_interrupter_linux.cc

Issue 129983002: Disable profiler for Dartium bots (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/profiler.cc ('k') | no next file » | 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) 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 #include "platform/globals.h" 5 #include "platform/globals.h"
6 #if defined(TARGET_OS_LINUX) 6 #if defined(TARGET_OS_LINUX)
7 7
8 #include "vm/signal_handler.h" 8 #include "vm/signal_handler.h"
9 #include "vm/thread_interrupter.h" 9 #include "vm/thread_interrupter.h"
10 10
(...skipping 23 matching lines...) Expand all
34 its.tid = state->id; 34 its.tid = state->id;
35 its.pc = SignalHandler::GetProgramCounter(mcontext); 35 its.pc = SignalHandler::GetProgramCounter(mcontext);
36 its.fp = SignalHandler::GetFramePointer(mcontext); 36 its.fp = SignalHandler::GetFramePointer(mcontext);
37 its.sp = SignalHandler::GetStackPointer(mcontext); 37 its.sp = SignalHandler::GetStackPointer(mcontext);
38 state->callback(its, state->data); 38 state->callback(its, state->data);
39 } 39 }
40 }; 40 };
41 41
42 42
43 void ThreadInterrupter::InterruptThreads(int64_t current_time) { 43 void ThreadInterrupter::InterruptThreads(int64_t current_time) {
44 // Temporary test.
45 return;
46 for (intptr_t i = 0; i < threads_size_; i++) { 44 for (intptr_t i = 0; i < threads_size_; i++) {
47 ThreadState* state = threads_[i]; 45 ThreadState* state = threads_[i];
48 ASSERT(state->id != Thread::kInvalidThreadId); 46 ASSERT(state->id != Thread::kInvalidThreadId);
49 if (FLAG_trace_thread_interrupter) { 47 if (FLAG_trace_thread_interrupter) {
50 OS::Print("ThreadInterrupter interrupting %p\n", 48 OS::Print("ThreadInterrupter interrupting %p\n",
51 reinterpret_cast<void*>(state->id)); 49 reinterpret_cast<void*>(state->id));
52 } 50 }
53 pthread_kill(state->id, SIGPROF); 51 pthread_kill(state->id, SIGPROF);
54 } 52 }
55 } 53 }
56 54
57 55
58 void ThreadInterrupter::InstallSignalHandler() { 56 void ThreadInterrupter::InstallSignalHandler() {
59 SignalHandler::Install(ThreadInterrupterLinux::ThreadInterruptSignalHandler); 57 SignalHandler::Install(ThreadInterrupterLinux::ThreadInterruptSignalHandler);
60 } 58 }
61 59
62 60
63 } // namespace dart 61 } // namespace dart
64 62
65 #endif // defined(TARGET_OS_LINUX) 63 #endif // defined(TARGET_OS_LINUX)
OLDNEW
« no previous file with comments | « runtime/vm/profiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698