| 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)
|
|
|