| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2013 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // } | 29 // } |
| 30 | 30 |
| 31 #ifndef WEBRTC_BASE_PROFILER_H_ | 31 #ifndef WEBRTC_BASE_PROFILER_H_ |
| 32 #define WEBRTC_BASE_PROFILER_H_ | 32 #define WEBRTC_BASE_PROFILER_H_ |
| 33 | 33 |
| 34 #include <map> | 34 #include <map> |
| 35 #include <string> | 35 #include <string> |
| 36 | 36 |
| 37 #include "webrtc/base/basictypes.h" | 37 #include "webrtc/base/basictypes.h" |
| 38 #include "webrtc/base/common.h" | 38 #include "webrtc/base/common.h" |
| 39 #include "webrtc/base/constructormagic.h" |
| 39 #include "webrtc/base/logging.h" | 40 #include "webrtc/base/logging.h" |
| 40 #include "webrtc/base/sharedexclusivelock.h" | 41 #include "webrtc/base/sharedexclusivelock.h" |
| 41 | 42 |
| 42 // Profiling could be switched via a build flag, but for now, it's always on. | 43 // Profiling could be switched via a build flag, but for now, it's always on. |
| 43 #ifndef ENABLE_PROFILING | 44 #ifndef ENABLE_PROFILING |
| 44 #define ENABLE_PROFILING | 45 #define ENABLE_PROFILING |
| 45 #endif | 46 #endif |
| 46 | 47 |
| 47 #ifdef ENABLE_PROFILING | 48 #ifdef ENABLE_PROFILING |
| 48 | 49 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 154 |
| 154 RTC_DISALLOW_COPY_AND_ASSIGN(ProfilerScope); | 155 RTC_DISALLOW_COPY_AND_ASSIGN(ProfilerScope); |
| 155 }; | 156 }; |
| 156 | 157 |
| 157 std::ostream& operator<<(std::ostream& stream, | 158 std::ostream& operator<<(std::ostream& stream, |
| 158 const ProfilerEvent& profiler_event); | 159 const ProfilerEvent& profiler_event); |
| 159 | 160 |
| 160 } // namespace rtc | 161 } // namespace rtc |
| 161 | 162 |
| 162 #endif // WEBRTC_BASE_PROFILER_H_ | 163 #endif // WEBRTC_BASE_PROFILER_H_ |
| OLD | NEW |