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

Side by Side Diff: base/debug/activity_analyzer.h

Issue 2966563004: StabilityReport proto changes for multi-process support (Closed)
Patch Set: Merge Created 3 years, 4 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
« no previous file with comments | « no previous file | base/debug/activity_analyzer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef BASE_DEBUG_ACTIVITY_ANALYZER_H_ 5 #ifndef BASE_DEBUG_ACTIVITY_ANALYZER_H_
6 #define BASE_DEBUG_ACTIVITY_ANALYZER_H_ 6 #define BASE_DEBUG_ACTIVITY_ANALYZER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 uint32_t ref, 172 uint32_t ref,
173 uint32_t id); 173 uint32_t id);
174 174
175 // Extract the data for a specific process. An empty snapshot will be 175 // Extract the data for a specific process. An empty snapshot will be
176 // returned if the process is not known. 176 // returned if the process is not known.
177 const ActivityUserData::Snapshot& GetProcessDataSnapshot(int64_t pid); 177 const ActivityUserData::Snapshot& GetProcessDataSnapshot(int64_t pid);
178 178
179 // Gets all log messages stored within. 179 // Gets all log messages stored within.
180 std::vector<std::string> GetLogMessages(); 180 std::vector<std::string> GetLogMessages();
181 181
182 // Gets all the known modules. 182 // Gets modules corresponding to a pid. This pid must come from a call to
183 std::vector<GlobalActivityTracker::ModuleInfo> GetModules(); 183 // GetFirst/NextProcess. Only modules that were first registered prior to
184 // GetFirstProcess's snapshot are returned.
185 std::vector<GlobalActivityTracker::ModuleInfo> GetModules(int64_t pid);
184 186
185 // Gets the corresponding "program location" for a given "program counter". 187 // Gets the corresponding "program location" for a given "program counter".
186 // This will return {0,0} if no mapping could be found. 188 // This will return {0,0} if no mapping could be found.
187 ProgramLocation GetProgramLocationFromAddress(uint64_t address); 189 ProgramLocation GetProgramLocationFromAddress(uint64_t address);
188 190
189 // Returns whether the data is complete. Data can be incomplete if the 191 // Returns whether the data is complete. Data can be incomplete if the
190 // recording size quota is hit. 192 // recording size quota is hit.
191 bool IsDataComplete() const; 193 bool IsDataComplete() const;
192 194
193 private: 195 private:
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 AnalyzerMap::iterator analyzers_iterator_; 239 AnalyzerMap::iterator analyzers_iterator_;
238 int64_t analyzers_iterator_pid_; 240 int64_t analyzers_iterator_pid_;
239 241
240 DISALLOW_COPY_AND_ASSIGN(GlobalActivityAnalyzer); 242 DISALLOW_COPY_AND_ASSIGN(GlobalActivityAnalyzer);
241 }; 243 };
242 244
243 } // namespace debug 245 } // namespace debug
244 } // namespace base 246 } // namespace base
245 247
246 #endif // BASE_DEBUG_ACTIVITY_ANALYZER_H_ 248 #endif // BASE_DEBUG_ACTIVITY_ANALYZER_H_
OLDNEW
« no previous file with comments | « no previous file | base/debug/activity_analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698