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

Unified Diff: tools/telemetry/telemetry/interactive_debugging.py

Issue 205243003: [telemetry] Consolidate global hooks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 6 years, 9 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 | « tools/telemetry/telemetry/exception_formatter.py ('k') | tools/telemetry/telemetry/page/page_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/interactive_debugging.py
diff --git a/tools/telemetry/telemetry/interactive_debugging.py b/tools/telemetry/telemetry/interactive_debugging.py
deleted file mode 100644
index 33452600a55e67ac5e32a86a83be2c2b3563a02d..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/interactive_debugging.py
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""When SIGUSR1 is received, print a stack trace."""
-
-import signal
-import traceback
-
-
-def _PrintDiagnostics(_, stack_frame):
- print """"SIGUSR1 received, printing stack trace:
- %s""" % ("".join(traceback.format_stack(stack_frame)))
-
-def InstallDebuggingHooks():
- # Windows doesn't define SIGUSR1.
- if not hasattr(signal, 'SIGUSR1'):
- return
-
- signal.signal(signal.SIGUSR1, _PrintDiagnostics)
« no previous file with comments | « tools/telemetry/telemetry/exception_formatter.py ('k') | tools/telemetry/telemetry/page/page_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698