diff options
author | mtklein <mtklein@chromium.org> | 2014-06-18 11:44:15 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-18 11:44:18 -0700 |
commit | 30e6e2af14e84216b1c113fd7500d0822bc81daa (patch) | |
tree | 16243d88ccd219ee59df299ad1304c2f566e1051 /bench | |
parent | f01a6c3663970ccd6e1882e76a887e0fda467b77 (diff) |
Add basic stacktrace handler using libunwind.
This means we will all have to apt-get install libunwind8-dev on Linux. Mac comes with everything we need already.
BUG=skia:
R=reed@google.com, mtklein@google.com
Author: mtklein@chromium.org
Review URL: https://codereview.chromium.org/343583005
Diffstat (limited to 'bench')
-rw-r--r-- | bench/benchmain.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp index 6e18a8ab3a..078a2e80e0 100644 --- a/bench/benchmain.cpp +++ b/bench/benchmain.cpp @@ -6,6 +6,7 @@ */ #include "BenchTimer.h" +#include "CrashHandler.h" #include "ResultsWriter.h" #include "SkBenchLogger.h" #include "SkBenchmark.h" @@ -271,6 +272,7 @@ static bool HasConverged(double prevPerLoop, double currPerLoop, double currRaw) int tool_main(int argc, char** argv); int tool_main(int argc, char** argv) { + SetupCrashHandler(); SkCommandLineFlags::Parse(argc, argv); #if SK_ENABLE_INST_COUNT if (FLAGS_leaks) { |