| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 static size_t TotalSizeOfCommittedPages() { | 81 static size_t TotalSizeOfCommittedPages() { |
| 82 size_t total_size = 0; | 82 size_t total_size = 0; |
| 83 total_size += fast_malloc_allocator_.root()->total_size_of_committed_pages; | 83 total_size += fast_malloc_allocator_.root()->total_size_of_committed_pages; |
| 84 total_size += array_buffer_allocator_.root()->total_size_of_committed_pages; | 84 total_size += array_buffer_allocator_.root()->total_size_of_committed_pages; |
| 85 total_size += buffer_allocator_.root()->total_size_of_committed_pages; | 85 total_size += buffer_allocator_.root()->total_size_of_committed_pages; |
| 86 total_size += layout_allocator_.root()->total_size_of_committed_pages; | 86 total_size += layout_allocator_.root()->total_size_of_committed_pages; |
| 87 return total_size; | 87 return total_size; |
| 88 } | 88 } |
| 89 | 89 |
| 90 static size_t TotalActiveBytes(); |
| 91 |
| 90 static void DecommitFreeableMemory(); | 92 static void DecommitFreeableMemory(); |
| 91 | 93 |
| 92 static void ReportMemoryUsageHistogram(); | 94 static void ReportMemoryUsageHistogram(); |
| 93 | 95 |
| 94 static void DumpMemoryStats(bool is_light_dump, base::PartitionStatsDumper*); | 96 static void DumpMemoryStats(bool is_light_dump, base::PartitionStatsDumper*); |
| 95 | 97 |
| 96 ALWAYS_INLINE static void* BufferMalloc(size_t n, const char* type_name) { | 98 ALWAYS_INLINE static void* BufferMalloc(size_t n, const char* type_name) { |
| 97 return PartitionAllocGeneric(BufferPartition(), n, type_name); | 99 return PartitionAllocGeneric(BufferPartition(), n, type_name); |
| 98 } | 100 } |
| 99 ALWAYS_INLINE static void* BufferRealloc(void* p, | 101 ALWAYS_INLINE static void* BufferRealloc(void* p, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 using base::PageAccessible; | 161 using base::PageAccessible; |
| 160 using base::PageInaccessible; | 162 using base::PageInaccessible; |
| 161 using base::PartitionStatsDumper; | 163 using base::PartitionStatsDumper; |
| 162 using base::PartitionMemoryStats; | 164 using base::PartitionMemoryStats; |
| 163 using base::PartitionBucketMemoryStats; | 165 using base::PartitionBucketMemoryStats; |
| 164 using base::PartitionAllocHooks; | 166 using base::PartitionAllocHooks; |
| 165 | 167 |
| 166 } // namespace WTF | 168 } // namespace WTF |
| 167 | 169 |
| 168 #endif // Partitions_h | 170 #endif // Partitions_h |
| OLD | NEW |