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

Unified Diff: runtime/vm/thread_interrupter_linux.cc

Issue 2682343002: Disable the profiler when a debugger is attached (Closed)
Patch Set: vegorov review Created 3 years, 10 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 | « runtime/vm/thread_interrupter_fuchsia.cc ('k') | runtime/vm/thread_interrupter_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread_interrupter_linux.cc
diff --git a/runtime/vm/thread_interrupter_linux.cc b/runtime/vm/thread_interrupter_linux.cc
index 167581edf0cec81fe2e68dbb94aadf9afb5448d8..6c4fdb2a133239e3f8a9a7a21d41e6f49a7cc63e 100644
--- a/runtime/vm/thread_interrupter_linux.cc
+++ b/runtime/vm/thread_interrupter_linux.cc
@@ -44,10 +44,15 @@ class ThreadInterrupterLinux : public AllStatic {
};
+bool ThreadInterrupter::IsDebuggerAttached() {
+ return false;
+}
+
+
void ThreadInterrupter::InterruptThread(OSThread* thread) {
if (FLAG_trace_thread_interrupter) {
- OS::Print("ThreadInterrupter interrupting %p\n",
- reinterpret_cast<void*>(thread->id()));
+ OS::PrintErr("ThreadInterrupter interrupting %p\n",
+ reinterpret_cast<void*>(thread->id()));
}
int result = pthread_kill(thread->id(), SIGPROF);
ASSERT((result == 0) || (result == ESRCH));
« no previous file with comments | « runtime/vm/thread_interrupter_fuchsia.cc ('k') | runtime/vm/thread_interrupter_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698