Commit Graph

7 Commits

Author SHA1 Message Date
johnmccutchan@google.com 919dc2d6eb * Introduce ThreadInterrupter which calls a TLS set callback when thread is interrupted.
* Threads can only register and unregister themselves with ThreadInterrupter.
* Profiler is no longer involved in interrupting threads. It's just a callback and the buffer.
* Profiler operates lock free using an atomic operation to reserve sample in sample buffer.
* Linux, Mac, and Windows done.

R=asiva@google.com

Review URL: https://codereview.chromium.org//109803002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31170 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-16 18:52:15 +00:00
johnmccutchan@google.com d53d7013ef Ensure profiler manager thread has shutdown before main thread
Review URL: https://codereview.chromium.org//86793002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30655 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-26 00:48:09 +00:00
johnmccutchan@google.com 72afb81a8c - Fix MonitorData ASSERT failure in thread_win:
E:\b\build\slave\vm-win32-debug-russian-be\build\dart\runtime\platform/thread_win.h:66: error: expected: next_ == NULL.
- Reduce sample buffer size by an order of magnitude (this should fix .
- Disable profiler on simulators.
- Only sample when scheduled thread id matches current thread id.

Review URL: https://codereview.chromium.org//85333006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30647 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 22:06:33 +00:00
johnmccutchan@google.com f42edb213a Guard against an isolate being scheduled twice
TBR

Review URL: https://codereview.chromium.org//83623004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30608 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-25 01:42:50 +00:00
johnmccutchan@google.com 65e7b9f980 - Fix shutdown race.
- Move signal blocking out of dart.cc and isolate.cc and into profiler.cc.
- Nest scope objects explicitly.
- Add missing signal block in ProfilerManager::ShutdownIsolateForProfiling.

R=iposva@google.com

Review URL: https://codereview.chromium.org//83093004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30602 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-23 00:26:35 +00:00
johnmccutchan@google.com b04d313c80 Disable native symbol resolver on WindowsDisable native symbol resolver on Windows
TBR

Review URL: https://codereview.chromium.org//81513004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30545 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-21 21:30:19 +00:00
johnmccutchan@google.com 97ac18aee9 Sampling profiler
BUG=4350
R=asiva@google.com

Review URL: https://codereview.chromium.org//25909002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30419 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-19 18:26:10 +00:00