| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "base/macros.h" | 
| 5 #include "base/memory/singleton.h" | 6 #include "base/memory/singleton.h" | 
| 6 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 7 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 
| 7 #include "base/trace_event/trace_event_synthetic_delay.h" | 8 #include "base/trace_event/trace_event_synthetic_delay.h" | 
| 8 | 9 | 
| 9 namespace { | 10 namespace { | 
| 10 const int kMaxSyntheticDelays = 32; | 11 const int kMaxSyntheticDelays = 32; | 
| 11 }  // namespace | 12 }  // namespace | 
| 12 | 13 | 
| 13 namespace base { | 14 namespace base { | 
| 14 namespace trace_event { | 15 namespace trace_event { | 
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 225     delay_impl = | 226     delay_impl = | 
| 226         base::trace_event::TraceEventSyntheticDelayRegistry::GetInstance() | 227         base::trace_event::TraceEventSyntheticDelayRegistry::GetInstance() | 
| 227             ->GetOrCreateDelay(name); | 228             ->GetOrCreateDelay(name); | 
| 228     base::subtle::Release_Store( | 229     base::subtle::Release_Store( | 
| 229         impl_ptr, reinterpret_cast<base::subtle::AtomicWord>(delay_impl)); | 230         impl_ptr, reinterpret_cast<base::subtle::AtomicWord>(delay_impl)); | 
| 230   } | 231   } | 
| 231   return delay_impl; | 232   return delay_impl; | 
| 232 } | 233 } | 
| 233 | 234 | 
| 234 }  // namespace trace_event_internal | 235 }  // namespace trace_event_internal | 
| OLD | NEW | 
|---|