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

Side by Side Diff: third_party/WebKit/Source/core/fetch/WebCacheMemoryDumpProvider.cpp

Issue 1369253002: Add Web Resources usage to chrome://tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web_cache2_base
Patch Set: Fix names. Created 5 years, 2 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 2015 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 #include "config.h"
6 #include "core/fetch/WebCacheMemoryDumpProvider.h"
7
8 #include "core/fetch/MemoryCache.h"
9 #include "public/platform/WebMemoryAllocatorDump.h"
10 #include "public/platform/WebProcessMemoryDump.h"
11
12 namespace blink {
13
14 WebCacheMemoryDumpProvider* WebCacheMemoryDumpProvider::instance()
15 {
16 DEFINE_STATIC_LOCAL(WebCacheMemoryDumpProvider, instance, ());
17 return &instance;
18 }
19
20 bool WebCacheMemoryDumpProvider::onMemoryDump(WebMemoryDumpLevelOfDetail levelOf Detail, WebProcessMemoryDump* memoryDump)
21 {
22 ASSERT(isMainThread());
23 if (m_memoryCache)
24 m_memoryCache->onMemoryDump(memoryDump);
25 return true;
26 }
27
28 WebCacheMemoryDumpProvider::WebCacheMemoryDumpProvider()
29 {
30 }
31
32 WebCacheMemoryDumpProvider::~WebCacheMemoryDumpProvider()
33 {
34 }
35
36 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698