OLD | NEW |
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; | 124 void ProcessCPUTimes(timeval* user_time, timeval* system_time) const override; |
125 void ReportID(UUID* report_id) const override; | 125 void ReportID(UUID* report_id) const override; |
126 void ClientID(UUID* client_id) const override; | 126 void ClientID(UUID* client_id) const override; |
127 const std::map<std::string, std::string>& AnnotationsSimpleMap() | 127 const std::map<std::string, std::string>& AnnotationsSimpleMap() |
128 const override; | 128 const override; |
129 const SystemSnapshot* System() const override; | 129 const SystemSnapshot* System() const override; |
130 std::vector<const ThreadSnapshot*> Threads() const override; | 130 std::vector<const ThreadSnapshot*> Threads() const override; |
131 std::vector<const ModuleSnapshot*> Modules() const override; | 131 std::vector<const ModuleSnapshot*> Modules() const override; |
132 const ExceptionSnapshot* Exception() const override; | 132 const ExceptionSnapshot* Exception() const override; |
133 std::vector<const MemoryMapRegionSnapshot*> MemoryMap() const override; | 133 std::vector<const MemoryMapRegionSnapshot*> MemoryMap() const override; |
| 134 std::vector<HandleSnapshot> Handles() const override; |
134 std::vector<const MemorySnapshot*> ExtraMemory() const override; | 135 std::vector<const MemorySnapshot*> ExtraMemory() const override; |
135 | 136 |
136 private: | 137 private: |
137 pid_t process_id_; | 138 pid_t process_id_; |
138 pid_t parent_process_id_; | 139 pid_t parent_process_id_; |
139 timeval snapshot_time_; | 140 timeval snapshot_time_; |
140 timeval process_start_time_; | 141 timeval process_start_time_; |
141 timeval process_cpu_user_time_; | 142 timeval process_cpu_user_time_; |
142 timeval process_cpu_system_time_; | 143 timeval process_cpu_system_time_; |
143 UUID report_id_; | 144 UUID report_id_; |
144 UUID client_id_; | 145 UUID client_id_; |
145 std::map<std::string, std::string> annotations_simple_map_; | 146 std::map<std::string, std::string> annotations_simple_map_; |
146 scoped_ptr<SystemSnapshot> system_; | 147 scoped_ptr<SystemSnapshot> system_; |
147 PointerVector<ThreadSnapshot> threads_; | 148 PointerVector<ThreadSnapshot> threads_; |
148 PointerVector<ModuleSnapshot> modules_; | 149 PointerVector<ModuleSnapshot> modules_; |
149 scoped_ptr<ExceptionSnapshot> exception_; | 150 scoped_ptr<ExceptionSnapshot> exception_; |
150 PointerVector<MemoryMapRegionSnapshot> memory_map_; | 151 PointerVector<MemoryMapRegionSnapshot> memory_map_; |
151 PointerVector<MemorySnapshot> extra_memory_; | 152 PointerVector<MemorySnapshot> extra_memory_; |
152 | 153 |
153 DISALLOW_COPY_AND_ASSIGN(TestProcessSnapshot); | 154 DISALLOW_COPY_AND_ASSIGN(TestProcessSnapshot); |
154 }; | 155 }; |
155 | 156 |
156 } // namespace test | 157 } // namespace test |
157 } // namespace crashpad | 158 } // namespace crashpad |
158 | 159 |
159 #endif // CRASHPAD_SNAPSHOT_TEST_TEST_PROCESS_SNAPSHOT_H_ | 160 #endif // CRASHPAD_SNAPSHOT_TEST_TEST_PROCESS_SNAPSHOT_H_ |
OLD | NEW |