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

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

Issue 981803003: base: Add/Fix namespace closing comments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/trace_event/memory_dump_manager.h" 5 #include "base/trace_event/memory_dump_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 19 matching lines...) Expand all
30 case DumpPointType::TASK_END: 30 case DumpPointType::TASK_END:
31 return "TASK_END"; 31 return "TASK_END";
32 case DumpPointType::PERIODIC_INTERVAL: 32 case DumpPointType::PERIODIC_INTERVAL:
33 return "PERIODIC_INTERVAL"; 33 return "PERIODIC_INTERVAL";
34 case DumpPointType::EXPLICITLY_TRIGGERED: 34 case DumpPointType::EXPLICITLY_TRIGGERED:
35 return "EXPLICITLY_TRIGGERED"; 35 return "EXPLICITLY_TRIGGERED";
36 } 36 }
37 NOTREACHED(); 37 NOTREACHED();
38 return "UNKNOWN"; 38 return "UNKNOWN";
39 } 39 }
40 } 40
41 } // namespace
41 42
42 // TODO(primiano): this should be smarter and should do something similar to 43 // TODO(primiano): this should be smarter and should do something similar to
43 // trace event synthetic delays. 44 // trace event synthetic delays.
44 const char MemoryDumpManager::kTraceCategory[] = 45 const char MemoryDumpManager::kTraceCategory[] =
45 TRACE_DISABLED_BY_DEFAULT("memory-dumps"); 46 TRACE_DISABLED_BY_DEFAULT("memory-dumps");
46 47
47 // static 48 // static
48 MemoryDumpManager* MemoryDumpManager::GetInstance() { 49 MemoryDumpManager* MemoryDumpManager::GetInstance() {
49 if (g_instance_for_testing) 50 if (g_instance_for_testing)
50 return g_instance_for_testing; 51 return g_instance_for_testing;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 175 }
175 176
176 void MemoryDumpManager::OnTraceLogDisabled() { 177 void MemoryDumpManager::OnTraceLogDisabled() {
177 AutoLock lock(lock_); 178 AutoLock lock(lock_);
178 dump_providers_enabled_.clear(); 179 dump_providers_enabled_.clear();
179 subtle::NoBarrier_Store(&memory_tracing_enabled_, 0); 180 subtle::NoBarrier_Store(&memory_tracing_enabled_, 0);
180 } 181 }
181 182
182 } // namespace trace_event 183 } // namespace trace_event
183 } // namespace base 184 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698