diff options
author | Jakub Pawlowski <jpawlowski@google.com> | 2017-12-21 11:39:48 -0800 |
---|---|---|
committer | Jakub Pawlowski <jpawlowski@google.com> | 2017-12-21 11:52:29 -0800 |
commit | 1c01c739718e65746f393b405a2bf97ce4cf8523 (patch) | |
tree | a6b9c23a7161f93c9ff62469c602bd312486373a | |
parent | fe2f52931e8e50253d06329d7bf0a4164c7ba580 (diff) | |
download | libchrome-1c01c739718e65746f393b405a2bf97ce4cf8523.tar.gz |
Mac build fix
Change-Id: Ice279534e47d6edccc8baf2ab62744f3e74f04e8
-rw-r--r-- | base/trace_event/trace_log.cc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/base/trace_event/trace_log.cc b/base/trace_event/trace_log.cc index d798a9539b..24339253df 100644 --- a/base/trace_event/trace_log.cc +++ b/base/trace_event/trace_log.cc @@ -1512,13 +1512,14 @@ void TraceLog::AddMetadataEventsWhileLocked() { } #if !defined(OS_NACL) && !defined(OS_IOS) - Time process_creation_time = CurrentProcessInfo::CreationTime(); - if (!process_creation_time.is_null()) { - TimeDelta process_uptime = Time::Now() - process_creation_time; - InitializeMetadataEvent(AddEventToThreadSharedChunkWhileLocked(NULL, false), - current_thread_id, "process_uptime_seconds", - "uptime", process_uptime.InSeconds()); - } + //TODO: CurrentProcessInfo::CreationTime() is breaking MAC build, uncomment when fixed. + // Time process_creation_time = CurrentProcessInfo::CreationTime(); + // if (!process_creation_time.is_null()) { + // TimeDelta process_uptime = Time::Now() - process_creation_time; + // InitializeMetadataEvent(AddEventToThreadSharedChunkWhileLocked(NULL, false), + // current_thread_id, "process_uptime_seconds", + // "uptime", process_uptime.InSeconds()); + // } #endif // !defined(OS_NACL) && !defined(OS_IOS) if (!process_labels_.empty()) { |