| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "blimp/engine/app/blimp_engine_crash_keys.h" |
| 6 |
| 7 #include <vector> |
| 8 |
| 9 #include "base/debug/crash_logging.h" |
| 10 #include "components/crash/core/common/crash_keys.h" |
| 11 |
| 12 namespace blimp { |
| 13 namespace engine { |
| 14 |
| 15 size_t RegisterEngineCrashKeys() { |
| 16 const std::vector<base::debug::CrashKey> engine_keys = { |
| 17 {::crash_keys::kClientId, ::crash_keys::kSmallSize}, |
| 18 {::crash_keys::kChannel, ::crash_keys::kSmallSize}, |
| 19 {::crash_keys::kNumVariations, ::crash_keys::kSmallSize}, |
| 20 {::crash_keys::kVariations, ::crash_keys::kLargeSize}, |
| 21 {"discardable-memory-allocated", ::crash_keys::kSmallSize}, |
| 22 {"discardable-memory-free", ::crash_keys::kSmallSize}, |
| 23 {"ppapi_path", ::crash_keys::kMediumSize}, |
| 24 {"subresource_url", ::crash_keys::kLargeSize}, |
| 25 {"total-discardable-memory-allocated", ::crash_keys::kSmallSize}}; |
| 26 |
| 27 return base::debug::InitCrashKeys(&engine_keys.at(0), engine_keys.size(), |
| 28 ::crash_keys::kChunkMaxLength); |
| 29 } |
| 30 |
| 31 } // namespace engine |
| 32 } // namespace blimp |
| OLD | NEW |