OLD | NEW |
1 // Copyright (c) 2012, Google Inc. | 1 // Copyright (c) 2012, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // Number of bytes currently allocated by application | 152 // Number of bytes currently allocated by application |
153 // This property is not writable. | 153 // This property is not writable. |
154 // | 154 // |
155 // "generic.heap_size" | 155 // "generic.heap_size" |
156 // Number of bytes in the heap == | 156 // Number of bytes in the heap == |
157 // current_allocated_bytes + | 157 // current_allocated_bytes + |
158 // fragmentation + | 158 // fragmentation + |
159 // freed memory regions | 159 // freed memory regions |
160 // This property is not writable. | 160 // This property is not writable. |
161 // | 161 // |
| 162 // "generic.total_physical_bytes" |
| 163 // Estimate of total bytes of the physical memory usage by the |
| 164 // allocator == |
| 165 // current_allocated_bytes + |
| 166 // fragmentation + |
| 167 // metadata |
| 168 // This property is not writable. |
| 169 // |
162 // tcmalloc | 170 // tcmalloc |
163 // -------- | 171 // -------- |
164 // "tcmalloc.max_total_thread_cache_bytes" | 172 // "tcmalloc.max_total_thread_cache_bytes" |
165 // Upper limit on total number of bytes stored across all | 173 // Upper limit on total number of bytes stored across all |
166 // per-thread caches. Default: 16MB. | 174 // per-thread caches. Default: 16MB. |
167 // | 175 // |
168 // "tcmalloc.current_total_thread_cache_bytes" | 176 // "tcmalloc.current_total_thread_cache_bytes" |
169 // Number of bytes used across all thread caches. | 177 // Number of bytes used across all thread caches. |
170 // This property is not writable. | 178 // This property is not writable. |
171 // | 179 // |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 406 |
399 // Perhaps add the following: | 407 // Perhaps add the following: |
400 // - stack trace if this range was sampled | 408 // - stack trace if this range was sampled |
401 // - heap growth stack trace if applicable to this range | 409 // - heap growth stack trace if applicable to this range |
402 // - age when allocated (for inuse) or freed (if not in use) | 410 // - age when allocated (for inuse) or freed (if not in use) |
403 }; | 411 }; |
404 | 412 |
405 } // namespace base | 413 } // namespace base |
406 | 414 |
407 #endif // BASE_MALLOC_EXTENSION_H_ | 415 #endif // BASE_MALLOC_EXTENSION_H_ |
OLD | NEW |