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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 | 123 |
124 //! \brief The exception code for an exception was retrieved. | 124 //! \brief The exception code for an exception was retrieved. |
125 //! | 125 //! |
126 //! These values are OS-specific, and correspond to | 126 //! These values are OS-specific, and correspond to |
127 //! MINIDUMP_EXCEPTION::ExceptionCode. | 127 //! MINIDUMP_EXCEPTION::ExceptionCode. |
128 static void ExceptionCode(uint32_t exception_code); | 128 static void ExceptionCode(uint32_t exception_code); |
129 | 129 |
130 //! \brief The exception handler server started capturing an exception. | 130 //! \brief The exception handler server started capturing an exception. |
131 static void ExceptionEncountered(); | 131 static void ExceptionEncountered(); |
132 | 132 |
133 //! \brief An important event in a handler process’ lifetime. | |
Ilya Sherman
2017/02/22 20:16:18
Please document that this is used to back an UMA h
Mark Mentovai
2017/02/22 20:27:47
Everything in this file is for UMA support. Do you
Ilya Sherman
2017/02/22 22:53:01
I'd generally lean toward yes, because not all dev
| |
134 enum class LifetimeMilestone : int32_t { | |
135 //! \brief The handler process started. | |
136 kStarted = 0, | |
137 | |
138 //! \brief The handler process exited normally and cleanly. | |
139 kExitedNormally, | |
140 | |
141 //! \brief The handler process exited early, but was successful in | |
142 //! performing some non-default action on user request. | |
143 kExitedEarly, | |
144 | |
145 //! \brief The handler process exited with a failure code. | |
146 kFailed, | |
147 | |
148 //! \brief The handler process was forcibly terminated. | |
149 kTerminated, | |
150 | |
151 //! \brief The handler process crashed. | |
152 kCrashed, | |
153 | |
154 //! \brief The number of values in this enumeration; not a valid value. | |
155 kMaxValue | |
156 }; | |
157 | |
158 //! \brief Records a handler start/exit/crash event. | |
159 static void HandlerLifetimeMilestone(LifetimeMilestone milestone); | |
160 | |
133 //! \brief The handler process crashed with the given exception code. | 161 //! \brief The handler process crashed with the given exception code. |
134 //! | 162 //! |
135 //! This is currently only reported on Windows. | 163 //! This is currently only reported on Windows. |
136 static void HandlerCrashed(uint32_t exception_code); | 164 static void HandlerCrashed(uint32_t exception_code); |
137 | 165 |
138 private: | 166 private: |
139 DISALLOW_IMPLICIT_CONSTRUCTORS(Metrics); | 167 DISALLOW_IMPLICIT_CONSTRUCTORS(Metrics); |
140 }; | 168 }; |
141 | 169 |
142 } // namespace crashpad | 170 } // namespace crashpad |
143 | 171 |
144 #endif // CRASHPAD_UTIL_MISC_METRICS_H_ | 172 #endif // CRASHPAD_UTIL_MISC_METRICS_H_ |
OLD | NEW |