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

Unified Diff: content/browser/browser_main_loop.h

Issue 65343006: Use TracingController for startup tracing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/tracing/tracing_messages.h ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.h
diff --git a/content/browser/browser_main_loop.h b/content/browser/browser_main_loop.h
index 84b31b46e524a10adc3e81fe569802538e1fd704..445d99050ef17eaf837379c2bcc81301fa29c69b 100644
--- a/content/browser/browser_main_loop.h
+++ b/content/browser/browser_main_loop.h
@@ -14,6 +14,7 @@
class CommandLine;
namespace base {
+class FilePath;
class HighResolutionTimerManager;
class MessageLoop;
class PowerMonitor;
@@ -98,6 +99,8 @@ class CONTENT_EXPORT BrowserMainLoop {
media::MIDIManager* midi_manager() const { return midi_manager_.get(); }
base::Thread* indexed_db_thread() const { return indexed_db_thread_.get(); }
+ bool is_tracing_startup() const { return is_tracing_startup_; }
+
private:
class MemoryObserver;
// For ShutdownThreadsAndCleanUp.
@@ -118,6 +121,9 @@ class CONTENT_EXPORT BrowserMainLoop {
void MainMessageLoopRun();
+ void InitStartupTracing(const CommandLine& command_line);
+ void EndStartupTracing(const base::FilePath& trace_file);
+
// Members initialized on construction ---------------------------------------
const MainFunctionParams& parameters_;
const CommandLine& parsed_command_line_;
@@ -173,6 +179,8 @@ class CONTENT_EXPORT BrowserMainLoop {
scoped_ptr<base::debug::TraceMemoryController> trace_memory_controller_;
scoped_ptr<base::debug::TraceEventSystemStatsMonitor> system_stats_monitor_;
+ bool is_tracing_startup_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserMainLoop);
};
« no previous file with comments | « components/tracing/tracing_messages.h ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698