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

Unified Diff: appengine/predator/app/backend/handlers/analyze_crash.py

Issue 2447253002: [Findit & Predator] Code reorg of Findit. (Closed)
Patch Set: Clean up. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: appengine/predator/app/backend/handlers/analyze_crash.py
diff --git a/appengine/predator/app/backend/handlers/analyze_crash.py b/appengine/predator/app/backend/handlers/analyze_crash.py
new file mode 100644
index 0000000000000000000000000000000000000000..bb43485b432135746e4955a2990d809291fcf741
--- /dev/null
+++ b/appengine/predator/app/backend/handlers/analyze_crash.py
@@ -0,0 +1,16 @@
+# Copyright 2016 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.
+
+from gae_libs.handlers import base_handler
+
+from backend.analysis import crash_analyzer
+from common.model import crash_analysis
+
+class AnalyzeCrash(base_handler.BaseHandler):
+
+ def HandleGet(self):
+ signature = self.request.get('signature', 'default')
+ crash = crash_analysis.CrashAnalysis.Get(signature=signature)
+ crash_analyzer.Analyze(crash.stacktrace)
+ self.response.write('Backend is analyzing the Chrome crash %r' % crash)

Powered by Google App Engine
This is Rietveld 408576698