| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "net/disk_cache/trace.h" | 5 #include "net/disk_cache/blockfile/trace.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
| 15 #include "net/disk_cache/stress_support.h" | 15 #include "net/disk_cache/blockfile/stress_support.h" |
| 16 | 16 |
| 17 // Change this value to 1 to enable tracing on a release build. By default, | 17 // Change this value to 1 to enable tracing on a release build. By default, |
| 18 // tracing is enabled only on debug builds. | 18 // tracing is enabled only on debug builds. |
| 19 #define ENABLE_TRACING 0 | 19 #define ENABLE_TRACING 0 |
| 20 | 20 |
| 21 #ifndef NDEBUG | 21 #ifndef NDEBUG |
| 22 #undef ENABLE_TRACING | 22 #undef ENABLE_TRACING |
| 23 #define ENABLE_TRACING 1 | 23 #define ENABLE_TRACING 1 |
| 24 #endif | 24 #endif |
| 25 | 25 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 void DestroyTrace(void) { | 183 void DestroyTrace(void) { |
| 184 s_trace_object = NULL; | 184 s_trace_object = NULL; |
| 185 } | 185 } |
| 186 | 186 |
| 187 void Trace(const char* format, ...) { | 187 void Trace(const char* format, ...) { |
| 188 } | 188 } |
| 189 | 189 |
| 190 #endif // ENABLE_TRACING | 190 #endif // ENABLE_TRACING |
| 191 | 191 |
| 192 } // namespace disk_cache | 192 } // namespace disk_cache |
| OLD | NEW |