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

Side by Side Diff: third_party/WebKit/Source/web/WebKit.cpp

Issue 1406213005: [tracing] Add names to memory-infra dumpers for debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@memory-infra-runtime
Patch Set: Created 5 years, 1 month 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
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 ThreadState::current()->addInterruptor(interruptor.release()); 117 ThreadState::current()->addInterruptor(interruptor.release());
118 ThreadState::current()->registerTraceDOMWrappers(V8PerIsolateData::mainThrea dIsolate(), V8GCController::traceDOMWrappers); 118 ThreadState::current()->registerTraceDOMWrappers(V8PerIsolateData::mainThrea dIsolate(), V8GCController::traceDOMWrappers);
119 119
120 // currentThread is null if we are running on a thread without a message loo p. 120 // currentThread is null if we are running on a thread without a message loo p.
121 if (WebThread* currentThread = platform->currentThread()) { 121 if (WebThread* currentThread = platform->currentThread()) {
122 ASSERT(!s_endOfTaskRunner); 122 ASSERT(!s_endOfTaskRunner);
123 s_endOfTaskRunner = new EndOfTaskRunner; 123 s_endOfTaskRunner = new EndOfTaskRunner;
124 currentThread->addTaskObserver(s_endOfTaskRunner); 124 currentThread->addTaskObserver(s_endOfTaskRunner);
125 125
126 // Register web cache dump provider for tracing. 126 // Register web cache dump provider for tracing.
127 platform->registerMemoryDumpProvider(WebCacheMemoryDumpProvider::instanc e()); 127 platform->registerMemoryDumpProvider(WebCacheMemoryDumpProvider::instanc e(), "WebCache");
haraken 2015/10/27 17:00:06 "WebCache" => "MemoryCache"
Primiano Tucci (use gerrit) 2015/10/27 17:03:19 Done.
128 } 128 }
129 } 129 }
130 130
131 v8::Isolate* mainThreadIsolate() 131 v8::Isolate* mainThreadIsolate()
132 { 132 {
133 return V8PerIsolateData::mainThreadIsolate(); 133 return V8PerIsolateData::mainThreadIsolate();
134 } 134 }
135 135
136 static double currentTimeFunction() 136 static double currentTimeFunction()
137 { 137 {
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 ASSERT(!reloadPages); 300 ASSERT(!reloadPages);
301 Page::refreshPlugins(); 301 Page::refreshPlugins();
302 } 302 }
303 303
304 void decommitFreeableMemory() 304 void decommitFreeableMemory()
305 { 305 {
306 WTF::Partitions::decommitFreeableMemory(); 306 WTF::Partitions::decommitFreeableMemory();
307 } 307 }
308 308
309 } // namespace blink 309 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.cpp ('k') | third_party/WebKit/public/platform/Platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698