Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: base/memory/malloc_statistics.h

Issue 2350423003: [Tentaive patch for discussion] Add Purge+Suspend metrics as UMA.
Patch Set: Add malloc_statistics Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BASE_MEMORY_MALLOC_STATISTICS_H_
6 #define BASE_MEMORY_MALLOC_STATISTICS_H_
7
8 #include <stddef.h>
9
10 #include "base/base_export.h"
11
12 namespace base {
13 namespace memory {
14
15 struct BASE_EXPORT MallocStatistics {
16 size_t allocated_objects_size;
17 size_t allocated_objects_count;
18 size_t metadata_fragmentation_caches;
19 size_t total_virtual_size;
20 size_t resident_size;
21
22 MallocStatistics()
23 : allocated_objects_size(0),
24 allocated_objects_count(0),
25 metadata_fragmentation_caches(0),
26 total_virtual_size(0),
27 resident_size(0) {}
28
29 static MallocStatistics GetStatistics();
30 };
31
32 } // namespace trace_event
33 } // namespace base
34
35 #endif // BASE_MEMORY_MALLOC_STATISTICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698