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

Side by Side Diff: base/trace_event/trace_event_synthetic_delay.cc

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « base/trace_event/process_memory_totals_dump_provider_unittest.cc ('k') | base/version.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 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/memory/singleton.h" 5 #include "base/memory/singleton.h"
6 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
7 #include "base/trace_event/trace_event_synthetic_delay.h" 6 #include "base/trace_event/trace_event_synthetic_delay.h"
8 7
9 namespace { 8 namespace {
10 const int kMaxSyntheticDelays = 32; 9 const int kMaxSyntheticDelays = 32;
11 } // namespace 10 } // namespace
12 11
13 namespace base { 12 namespace base {
14 namespace trace_event { 13 namespace trace_event {
15 14
16 TraceEventSyntheticDelayClock::TraceEventSyntheticDelayClock() {} 15 TraceEventSyntheticDelayClock::TraceEventSyntheticDelayClock() {}
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 delay_impl = 225 delay_impl =
227 base::trace_event::TraceEventSyntheticDelayRegistry::GetInstance() 226 base::trace_event::TraceEventSyntheticDelayRegistry::GetInstance()
228 ->GetOrCreateDelay(name); 227 ->GetOrCreateDelay(name);
229 base::subtle::Release_Store( 228 base::subtle::Release_Store(
230 impl_ptr, reinterpret_cast<base::subtle::AtomicWord>(delay_impl)); 229 impl_ptr, reinterpret_cast<base::subtle::AtomicWord>(delay_impl));
231 } 230 }
232 return delay_impl; 231 return delay_impl;
233 } 232 }
234 233
235 } // namespace trace_event_internal 234 } // namespace trace_event_internal
OLDNEW
« no previous file with comments | « base/trace_event/process_memory_totals_dump_provider_unittest.cc ('k') | base/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698