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

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

Issue 25909002: Sampling profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/signal_handler.h ('k') | runtime/vm/signal_handler_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 #include "vm/globals.h"
6 #include "vm/signal_handler.h"
7 #if defined(TARGET_OS_ANDROID)
8
9 namespace dart {
10
11 uintptr_t SignalHandler::GetProgramCounter(const mcontext_t& mcontext) {
12 UNIMPLEMENTED();
13 }
14
15
16 uintptr_t SignalHandler::GetFramePointer(const mcontext_t& mcontext) {
17 UNIMPLEMENTED();
18 }
19
20
21 uintptr_t SignalHandler::GetStackPointer(const mcontext_t& mcontext) {
22 UNIMPLEMENTED();
23 }
24
25
26 void SignalHandler::Install(SignalAction action) {
27 UNIMPLEMENTED();
28 }
29
30
31 ScopedSignalBlocker::ScopedSignalBlocker() {
32 sigset_t set;
33 sigemptyset(&set);
34 sigaddset(&set, SIGPROF);
35 pthread_sigmask(SIG_SETMASK, &set, &old_);
36 }
37
38
39 ScopedSignalBlocker::~ScopedSignalBlocker() {
40 pthread_sigmask(SIG_SETMASK, &old_, NULL);
41 }
42
43 } // namespace dart
44
45 #endif // defined(TARGET_OS_ANDROID)
OLDNEW
« no previous file with comments | « runtime/vm/signal_handler.h ('k') | runtime/vm/signal_handler_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698