summaryrefslogtreecommitdiffstats
path: root/base/location.h
diff options
context:
space:
mode:
authorjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-03 17:51:25 +0000
committerjbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-03 17:51:25 +0000
commit19d8a90fbc1fd7c26a873dc84fcbc875c509cf11 (patch)
treefc4334d1a7764649899ee6bbfef21c347f1a11fb /base/location.h
parente4a2d08560a6853ce728c142ee71a104f14acea0 (diff)
downloadchromium_src-19d8a90fbc1fd7c26a873dc84fcbc875c509cf11.zip
chromium_src-19d8a90fbc1fd7c26a873dc84fcbc875c509cf11.tar.gz
chromium_src-19d8a90fbc1fd7c26a873dc84fcbc875c509cf11.tar.bz2
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
Diffstat (limited to 'base/location.h')
-rw-r--r--base/location.h8
1 files changed, 4 insertions, 4 deletions
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();