OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromecast/crash/cast_crash_keys.h" | 5 #include "chromecast/crash/cast_crash_keys.h" |
6 | 6 |
7 // TODO(kjoswiak): Potentially refactor chunk size info as well as non-cast | 7 // TODO(kjoswiak): Potentially refactor chunk size info as well as non-cast |
8 // specific keys out and make shared with chrome/common/crash_keys.cc. | 8 // specific keys out and make shared with chrome/common/crash_keys.cc. |
9 namespace { | 9 namespace { |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 const char kLastApp[] = "last_app"; | 31 const char kLastApp[] = "last_app"; |
32 const char kCurrentApp[] = "current_app"; | 32 const char kCurrentApp[] = "current_app"; |
33 const char kPreviousApp[] = "previous_app"; | 33 const char kPreviousApp[] = "previous_app"; |
34 | 34 |
35 size_t RegisterCastCrashKeys() { | 35 size_t RegisterCastCrashKeys() { |
36 const base::debug::CrashKey fixed_keys[] = { | 36 const base::debug::CrashKey fixed_keys[] = { |
37 { kLastApp, kSmallSize }, | 37 { kLastApp, kSmallSize }, |
38 { kCurrentApp, kSmallSize }, | 38 { kCurrentApp, kSmallSize }, |
39 { kPreviousApp, kSmallSize }, | 39 { kPreviousApp, kSmallSize }, |
40 // base/: | |
41 { "dm-usage", kSmallSize }, | |
42 { "total-dm-usage", kSmallSize }, | |
43 // content/: | 40 // content/: |
| 41 { "discardable-memory-allocated", kSmallSize }, |
| 42 { "discardable-memory-free", kSmallSize }, |
44 { "ppapi_path", kMediumSize }, | 43 { "ppapi_path", kMediumSize }, |
45 { "subresource_url", kLargeSize }, | 44 { "subresource_url", kLargeSize }, |
| 45 { "total-discardable-memory-allocated", kSmallSize }, |
46 }; | 46 }; |
47 | 47 |
48 return base::debug::InitCrashKeys(fixed_keys, arraysize(fixed_keys), | 48 return base::debug::InitCrashKeys(fixed_keys, arraysize(fixed_keys), |
49 kSingleChunkLength); | 49 kSingleChunkLength); |
50 } | 50 } |
51 | 51 |
52 } // namespace chromecast | 52 } // namespace chromecast |
53 } // namespace crash_keys | 53 } // namespace crash_keys |
OLD | NEW |