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

Side by Side Diff: public/web/WebCache.h

Issue 1278403007: [tracing] Fix accounting of WebCache memory statistics (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@oilpan_light
Patch Set: Changing internal api to use size_t. Created 5 years, 4 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
« no previous file with comments | « Source/web/WebCache.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 size_t liveSize; 47 size_t liveSize;
48 size_t deadSize; 48 size_t deadSize;
49 }; 49 };
50 50
51 // A struct mirroring blink::MemoryCache::TypeStatistic. 51 // A struct mirroring blink::MemoryCache::TypeStatistic.
52 struct ResourceTypeStat { 52 struct ResourceTypeStat {
53 size_t count; 53 size_t count;
54 size_t size; 54 size_t size;
55 size_t liveSize; 55 size_t liveSize;
56 size_t decodedSize; 56 size_t decodedSize;
57 size_t purgedSize;
58 size_t purgeableSize;
57 }; 59 };
58 60
59 // A struct mirroring blink::MemoryCache::Statistics. 61 // A struct mirroring blink::MemoryCache::Statistics.
60 struct ResourceTypeStats { 62 struct ResourceTypeStats {
61 ResourceTypeStat images; 63 ResourceTypeStat images;
62 ResourceTypeStat cssStyleSheets; 64 ResourceTypeStat cssStyleSheets;
63 ResourceTypeStat scripts; 65 ResourceTypeStat scripts;
64 ResourceTypeStat xslStyleSheets; 66 ResourceTypeStat xslStyleSheets;
65 ResourceTypeStat fonts; 67 ResourceTypeStat fonts;
66 ResourceTypeStat other; 68 ResourceTypeStat other;
(...skipping 19 matching lines...) Expand all
86 // cleared if they are actively referenced). And releases cache memory. 88 // cleared if they are actively referenced). And releases cache memory.
87 BLINK_EXPORT static void pruneAll(); 89 BLINK_EXPORT static void pruneAll();
88 90
89 private: 91 private:
90 WebCache(); // Not intended to be instanced. 92 WebCache(); // Not intended to be instanced.
91 }; 93 };
92 94
93 } // namespace blink 95 } // namespace blink
94 96
95 #endif 97 #endif
OLDNEW
« no previous file with comments | « Source/web/WebCache.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698