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

Unified Diff: runtime/vm/thread_interrupter_win.cc

Issue 1423473004: Switch profiler from isolates to threads [second landing] (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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_test.cc ('k') | runtime/vm/thread_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/thread_interrupter_win.cc
diff --git a/runtime/vm/thread_interrupter_win.cc b/runtime/vm/thread_interrupter_win.cc
index 70a5e8c93f877bc049eef271a4c32bae48bdf558..4231d1e9d21d88b22997cc45813b4b39b7cb8046 100644
--- a/runtime/vm/thread_interrupter_win.cc
+++ b/runtime/vm/thread_interrupter_win.cc
@@ -7,6 +7,7 @@
#include "vm/flags.h"
#include "vm/os.h"
+#include "vm/profiler.h"
#include "vm/thread_interrupter.h"
namespace dart {
@@ -69,7 +70,6 @@ class ThreadInterrupterWin : public AllStatic {
return;
}
InterruptedThreadState its;
- its.tid = thread->id();
if (!GrabRegisters(handle, &its)) {
// Failed to get thread registers.
ResumeThread(handle);
@@ -80,11 +80,7 @@ class ThreadInterrupterWin : public AllStatic {
CloseHandle(handle);
return;
}
- ThreadInterruptCallback callback = NULL;
- void* callback_data = NULL;
- if (thread->IsThreadInterrupterEnabled(&callback, &callback_data)) {
- callback(its, callback_data);
- }
+ Profiler::SampleThread(thread, its);
ResumeThread(handle);
CloseHandle(handle);
}
« no previous file with comments | « runtime/vm/thread_interrupter_test.cc ('k') | runtime/vm/thread_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698