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

Unified Diff: snapshot/win/process_snapshot_win.cc

Issue 1119393003: win: Add support for CPUTimes and StartTime to snapshot (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@generate-dump
Patch Set: fix whitespace error Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « snapshot/win/process_reader_win.cc ('k') | util/win/time.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/win/process_snapshot_win.cc
diff --git a/snapshot/win/process_snapshot_win.cc b/snapshot/win/process_snapshot_win.cc
index cf609610953bd68255ecc3f7eaa1116c1de42bdb..16623069ce9015bda8be3437815757000bcdfb00 100644
--- a/snapshot/win/process_snapshot_win.cc
+++ b/snapshot/win/process_snapshot_win.cc
@@ -99,12 +99,14 @@ void ProcessSnapshotWin::SnapshotTime(timeval* snapshot_time) const {
}
void ProcessSnapshotWin::ProcessStartTime(timeval* start_time) const {
- CHECK(false) << "TODO(scottmg)";
+ INITIALIZATION_STATE_DCHECK_VALID(initialized_);
+ process_reader_.StartTime(start_time);
}
void ProcessSnapshotWin::ProcessCPUTimes(timeval* user_time,
timeval* system_time) const {
- CHECK(false) << "TODO(scottmg)";
+ INITIALIZATION_STATE_DCHECK_VALID(initialized_);
+ process_reader_.CPUTimes(user_time, system_time);
}
void ProcessSnapshotWin::ReportID(UUID* report_id) const {
« no previous file with comments | « snapshot/win/process_reader_win.cc ('k') | util/win/time.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698