OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkUtils_DEFINED | 8 #ifndef SkUtils_DEFINED |
9 #define SkUtils_DEFINED | 9 #define SkUtils_DEFINED |
10 | 10 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
119 class SkAutoMemoryUsageProbe { | 119 class SkAutoMemoryUsageProbe { |
120 public: | 120 public: |
121 /** Record memory usage in constructor, and dump the result | 121 /** Record memory usage in constructor, and dump the result |
122 (delta and current total) in the destructor, with the optional | 122 (delta and current total) in the destructor, with the optional |
123 label. NOTE: label contents are not copied, just the ptr is | 123 label. NOTE: label contents are not copied, just the ptr is |
124 retained, so DON'T DELETE IT. | 124 retained, so DON'T DELETE IT. |
125 */ | 125 */ |
126 SkAutoMemoryUsageProbe(const char label[]); | 126 SkAutoMemoryUsageProbe(const char label[]); |
127 ~SkAutoMemoryUsageProbe(); | 127 ~SkAutoMemoryUsageProbe(); |
128 private: | 128 private: |
129 const char* fLabel; | |
scroggo
2013/03/24 14:58:01
I wonder if we should just #if 0 or remove the ent
| |
130 size_t fBytesAllocated; | |
131 }; | 129 }; |
132 | 130 |
133 #endif | 131 #endif |
OLD | NEW |