OLD | NEW |
1 // Copyright 2016 The Crashpad Authors. All rights reserved. | 1 // Copyright 2016 The Crashpad Authors. All rights reserved. |
2 // | 2 // |
3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
6 // | 6 // |
7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
8 // | 8 // |
9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 static void CrashUploadSkipped(CrashSkippedReason reason); | 82 static void CrashUploadSkipped(CrashSkippedReason reason); |
83 | 83 |
84 //! \brief The result of capturing an exception. These are used as metrics | 84 //! \brief The result of capturing an exception. These are used as metrics |
85 //! enumeration values, so new values should always be added at the end. | 85 //! enumeration values, so new values should always be added at the end. |
86 enum class CaptureResult : int32_t { | 86 enum class CaptureResult : int32_t { |
87 //! \brief The exception capture succeeded normally. | 87 //! \brief The exception capture succeeded normally. |
88 kSuccess = 0, | 88 kSuccess = 0, |
89 | 89 |
90 //! \brief Unexpected exception behavior. | 90 //! \brief Unexpected exception behavior. |
91 //! | 91 //! |
92 //! This value is only used on Mac OS X. | 92 //! This value is only used on macOS. |
93 kUnexpectedExceptionBehavior = 1, | 93 kUnexpectedExceptionBehavior = 1, |
94 | 94 |
95 //! \brief Failed due to attempt to suspend self. | 95 //! \brief Failed due to attempt to suspend self. |
96 //! | 96 //! |
97 //! This value is only used on Mac OS X. | 97 //! This value is only used on macOS. |
98 kFailedDueToSuspendSelf = 2, | 98 kFailedDueToSuspendSelf = 2, |
99 | 99 |
100 //! \brief The process snapshot could not be captured. | 100 //! \brief The process snapshot could not be captured. |
101 kSnapshotFailed = 3, | 101 kSnapshotFailed = 3, |
102 | 102 |
103 //! \brief The exception could not be initialized. | 103 //! \brief The exception could not be initialized. |
104 kExceptionInitializationFailed = 4, | 104 kExceptionInitializationFailed = 4, |
105 | 105 |
106 //! \brief The attempt to prepare a new crash report in the crash database | 106 //! \brief The attempt to prepare a new crash report in the crash database |
107 //! failed. | 107 //! failed. |
(...skipping 27 matching lines...) Expand all Loading... |
135 //! This is currently only reported on Windows. | 135 //! This is currently only reported on Windows. |
136 static void HandlerCrashed(uint32_t exception_code); | 136 static void HandlerCrashed(uint32_t exception_code); |
137 | 137 |
138 private: | 138 private: |
139 DISALLOW_IMPLICIT_CONSTRUCTORS(Metrics); | 139 DISALLOW_IMPLICIT_CONSTRUCTORS(Metrics); |
140 }; | 140 }; |
141 | 141 |
142 } // namespace crashpad | 142 } // namespace crashpad |
143 | 143 |
144 #endif // CRASHPAD_UTIL_MISC_METRICS_H_ | 144 #endif // CRASHPAD_UTIL_MISC_METRICS_H_ |
OLD | NEW |