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

Side by Side Diff: content/gpu/gpu_main.cc

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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <dwmapi.h> 8 #include <dwmapi.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 385
386 child_thread->Init(start_time); 386 child_thread->Init(start_time);
387 387
388 gpu_process.set_main_thread(child_thread); 388 gpu_process.set_main_thread(child_thread);
389 389
390 if (watchdog_thread.get()) 390 if (watchdog_thread.get())
391 watchdog_thread->AddPowerObserver(); 391 watchdog_thread->AddPowerObserver();
392 392
393 #if defined(OS_ANDROID) 393 #if defined(OS_ANDROID)
394 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( 394 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
395 tracing::GraphicsMemoryDumpProvider::GetInstance()); 395 tracing::GraphicsMemoryDumpProvider::GetInstance(), "AndroidGraphics",
396 nullptr);
396 #endif 397 #endif
397 398
398 { 399 {
399 TRACE_EVENT0("gpu", "Run Message Loop"); 400 TRACE_EVENT0("gpu", "Run Message Loop");
400 main_message_loop.Run(); 401 main_message_loop.Run();
401 } 402 }
402 403
403 child_thread->StopWatchdog(); 404 child_thread->StopWatchdog();
404 405
405 return 0; 406 return 0;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 return true; 564 return true;
564 } 565 }
565 566
566 return false; 567 return false;
567 } 568 }
568 #endif // defined(OS_WIN) 569 #endif // defined(OS_WIN)
569 570
570 } // namespace. 571 } // namespace.
571 572
572 } // namespace content 573 } // namespace content
OLDNEW
« no previous file with comments | « content/common/host_discardable_shared_memory_manager.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698