Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: third_party/crashpad/crashpad/snapshot/mac/process_reader.h

Issue 2773813002: Update Crashpad to 8e37886d418dd042c3c7bfadac99214739ee4d98 (Closed)
Patch Set: Update Crashpad to 8e37886d418dd042c3c7bfadac99214739ee4d98 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 //! \return The target task’s process ID. 118 //! \return The target task’s process ID.
119 pid_t ProcessID() const { return process_info_.ProcessID(); } 119 pid_t ProcessID() const { return process_info_.ProcessID(); }
120 120
121 //! \return The target task’s parent process ID. 121 //! \return The target task’s parent process ID.
122 pid_t ParentProcessID() const { return process_info_.ParentProcessID(); } 122 pid_t ParentProcessID() const { return process_info_.ParentProcessID(); }
123 123
124 //! \brief Determines the target process’ start time. 124 //! \brief Determines the target process’ start time.
125 //! 125 //!
126 //! \param[out] start_time The time that the process started. 126 //! \param[out] start_time The time that the process started.
127 void StartTime(timeval* start_time) const { 127 void StartTime(timeval* start_time) const;
128 process_info_.StartTime(start_time);
129 }
130 128
131 //! \brief Determines the target process’ execution time. 129 //! \brief Determines the target process’ execution time.
132 //! 130 //!
133 //! \param[out] user_time The amount of time the process has executed code in 131 //! \param[out] user_time The amount of time the process has executed code in
134 //! user mode. 132 //! user mode.
135 //! \param[out] system_time The amount of time the process has executed code 133 //! \param[out] system_time The amount of time the process has executed code
136 //! in system mode. 134 //! in system mode.
137 //! 135 //!
138 //! \return `true` on success, `false` on failure, with a warning logged. On 136 //! \return `true` on success, `false` on failure, with a warning logged. On
139 //! failure, \a user_time and \a system_time will be set to represent no 137 //! failure, \a user_time and \a system_time will be set to represent no
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 229
232 bool initialized_threads_; 230 bool initialized_threads_;
233 bool initialized_modules_; 231 bool initialized_modules_;
234 232
235 DISALLOW_COPY_AND_ASSIGN(ProcessReader); 233 DISALLOW_COPY_AND_ASSIGN(ProcessReader);
236 }; 234 };
237 235
238 } // namespace crashpad 236 } // namespace crashpad
239 237
240 #endif // CRASHPAD_SNAPSHOT_MAC_PROCESS_READER_H_ 238 #endif // CRASHPAD_SNAPSHOT_MAC_PROCESS_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698