From 19d8a90fbc1fd7c26a873dc84fcbc875c509cf11 Mon Sep 17 00:00:00 2001 From: "jbates@chromium.org" Date: Mon, 3 Oct 2011 17:51:25 +0000 Subject: Add trace code to track all posted tasks in message_loop and WorkerThreads (non-official builds only). It's very helpful to understand what chrome is doing at runtime. Sometimes a thread in chrome does something expensive that causes a frame hitch. With this change, any expensive task will show up clearly in traces, with the file/function of where the task was posted. TEST=go to about:tracing, run a trace and notice that all tasks are traced. Review URL: http://codereview.chromium.org/7778033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103740 0039d316-1c4b-4281-b951-d872f2087c98 --- base/location.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'base/location.h') diff --git a/base/location.h b/base/location.h index fab8f4f..74a38eb 100644 --- a/base/location.h +++ b/base/location.h @@ -60,10 +60,10 @@ class BASE_EXPORT Location { void WriteFunctionName(std::string* output) const; private: - const char* const function_name_; - const char* const file_name_; - const int line_number_; - const void* const program_counter_; + const char* function_name_; + const char* file_name_; + int line_number_; + const void* program_counter_; }; BASE_EXPORT const void* GetProgramCounter(); -- cgit v1.1