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

Unified Diff: runtime/bin/vmstats_impl_linux.cc

Issue 18611003: Remove VM Stats (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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/bin/vmstats_impl_android.cc ('k') | runtime/bin/vmstats_impl_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmstats_impl_linux.cc
diff --git a/runtime/bin/vmstats_impl_linux.cc b/runtime/bin/vmstats_impl_linux.cc
deleted file mode 100644
index 93efbf2bd9674b38f211e0f26c07f8e1348961c9..0000000000000000000000000000000000000000
--- a/runtime/bin/vmstats_impl_linux.cc
+++ /dev/null
@@ -1,38 +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_LINUX)
-
-#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_LINUX)
« no previous file with comments | « runtime/bin/vmstats_impl_android.cc ('k') | runtime/bin/vmstats_impl_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698