| Index: runtime/bin/vmstats_impl_android.cc
|
| diff --git a/runtime/bin/vmstats_impl_android.cc b/runtime/bin/vmstats_impl_android.cc
|
| deleted file mode 100644
|
| index 5baa0d4c3ea6dabc070f474425aa04492f945d5f..0000000000000000000000000000000000000000
|
| --- a/runtime/bin/vmstats_impl_android.cc
|
| +++ /dev/null
|
| @@ -1,39 +0,0 @@
|
| -// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -#include "platform/globals.h"
|
| -#if defined(TARGET_OS_ANDROID)
|
| -
|
| -#include "bin/vmstats_impl.h"
|
| -
|
| -#include <signal.h> // NOLINT
|
| -
|
| -
|
| -namespace dart {
|
| -namespace bin {
|
| -
|
| -static void sig_handler(int sig, siginfo_t* siginfo, void*) {
|
| - if (sig == SIGQUIT) {
|
| - VmStats::DumpStack();
|
| - } else {
|
| - FATAL1("unrequested signal %d received\n", sig);
|
| - }
|
| -}
|
| -
|
| -void VmStats::Initialize() {
|
| - // Enable SIGQUIT (ctrl-\) stack dumps.
|
| - struct sigaction sigact;
|
| - memset(&sigact, '\0', sizeof(sigact));
|
| - sigact.sa_sigaction = sig_handler;
|
| - sigact.sa_flags = SA_SIGINFO;
|
| - if (sigaction(SIGQUIT, &sigact, NULL) < 0) {
|
| - perror("sigaction");
|
| - }
|
| -}
|
| -
|
| -} // namespace bin
|
| -} // namespace dart
|
| -
|
| -#endif // defined(TARGET_OS_ANDROID)
|
| -
|
|
|