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

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: Rebase + fix android 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 ThreadState::current()->addInterruptor(interruptor.release()); 116 ThreadState::current()->addInterruptor(interruptor.release());
117 ThreadState::current()->registerTraceDOMWrappers(V8PerIsolateData::mainThrea dIsolate(), V8GCController::traceDOMWrappers); 117 ThreadState::current()->registerTraceDOMWrappers(V8PerIsolateData::mainThrea dIsolate(), V8GCController::traceDOMWrappers);
118 118
119 // currentThread is null if we are running on a thread without a message loo p. 119 // currentThread is null if we are running on a thread without a message loo p.
120 if (WebThread* currentThread = platform->currentThread()) { 120 if (WebThread* currentThread = platform->currentThread()) {
121 ASSERT(!s_endOfTaskRunner); 121 ASSERT(!s_endOfTaskRunner);
122 s_endOfTaskRunner = new EndOfTaskRunner; 122 s_endOfTaskRunner = new EndOfTaskRunner;
123 currentThread->addTaskObserver(s_endOfTaskRunner); 123 currentThread->addTaskObserver(s_endOfTaskRunner);
124 124
125 // Register web cache dump provider for tracing. 125 // Register web cache dump provider for tracing.
126 platform->registerMemoryDumpProvider(WebCacheMemoryDumpProvider::instanc e()); 126 platform->registerMemoryDumpProvider(WebCacheMemoryDumpProvider::instanc e(), "MemoryCache");
127 } 127 }
128 } 128 }
129 129
130 v8::Isolate* mainThreadIsolate() 130 v8::Isolate* mainThreadIsolate()
131 { 131 {
132 return V8PerIsolateData::mainThreadIsolate(); 132 return V8PerIsolateData::mainThreadIsolate();
133 } 133 }
134 134
135 static double currentTimeFunction() 135 static double currentTimeFunction()
136 { 136 {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 ASSERT(!reloadPages); 295 ASSERT(!reloadPages);
296 Page::refreshPlugins(); 296 Page::refreshPlugins();
297 } 297 }
298 298
299 void decommitFreeableMemory() 299 void decommitFreeableMemory()
300 { 300 {
301 WTF::Partitions::decommitFreeableMemory(); 301 WTF::Partitions::decommitFreeableMemory();
302 } 302 }
303 303
304 } // namespace blink 304 } // 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