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

Side by Side Diff: content/app/content_main_runner.cc

Issue 109933006: Implement sampling profiler (chromium side change) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
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 "content/public/app/content_main_runner.h" 5 #include "content/public/app/content_main_runner.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/allocator/allocator_extension.h" 9 #include "base/allocator/allocator_extension.h"
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 base::RouteStdioToConsole(); 664 base::RouteStdioToConsole();
665 #endif 665 #endif
666 666
667 // Enable startup tracing asap to avoid early TRACE_EVENT calls being 667 // Enable startup tracing asap to avoid early TRACE_EVENT calls being
668 // ignored. 668 // ignored.
669 if (command_line.HasSwitch(switches::kTraceStartup)) { 669 if (command_line.HasSwitch(switches::kTraceStartup)) {
670 base::debug::CategoryFilter category_filter( 670 base::debug::CategoryFilter category_filter(
671 command_line.GetSwitchValueASCII(switches::kTraceStartup)); 671 command_line.GetSwitchValueASCII(switches::kTraceStartup));
672 base::debug::TraceLog::GetInstance()->SetEnabled( 672 base::debug::TraceLog::GetInstance()->SetEnabled(
673 category_filter, 673 category_filter,
674 base::debug::TraceLog::RECORDING_MODE,
674 base::debug::TraceLog::RECORD_UNTIL_FULL); 675 base::debug::TraceLog::RECORD_UNTIL_FULL);
675 } 676 }
676 #if !defined(OS_ANDROID) 677 #if !defined(OS_ANDROID)
677 // Android tracing started at the beginning of the method. 678 // Android tracing started at the beginning of the method.
678 // Other OSes have to wait till we get here in order for all the memory 679 // Other OSes have to wait till we get here in order for all the memory
679 // management setup to be completed. 680 // management setup to be completed.
680 TRACE_EVENT0("startup", "ContentMainRunnerImpl::Initialize"); 681 TRACE_EVENT0("startup", "ContentMainRunnerImpl::Initialize");
681 #endif // !OS_ANDROID 682 #endif // !OS_ANDROID
682 683
683 #if defined(OS_MACOSX) && !defined(OS_IOS) 684 #if defined(OS_MACOSX) && !defined(OS_IOS)
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 850
850 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl); 851 DISALLOW_COPY_AND_ASSIGN(ContentMainRunnerImpl);
851 }; 852 };
852 853
853 // static 854 // static
854 ContentMainRunner* ContentMainRunner::Create() { 855 ContentMainRunner* ContentMainRunner::Create() {
855 return new ContentMainRunnerImpl(); 856 return new ContentMainRunnerImpl();
856 } 857 }
857 858
858 } // namespace content 859 } // namespace content
OLDNEW
« no previous file with comments | « content/app/android/library_loader_hooks.cc ('k') | content/browser/media/webrtc_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698