diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-05 00:39:27 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-05 00:39:27 +0000 |
commit | c0d95e50bd35007e532f3d1cdb0b3892e7dc5314 (patch) | |
tree | b7bae2fc3bb48b64b3c89941e8a437c17e061db5 /base/location.h | |
parent | 1cd758c5ac4fe21c61d3afc47f0648d1ad3c28b0 (diff) | |
download | chromium_src-c0d95e50bd35007e532f3d1cdb0b3892e7dc5314.zip chromium_src-c0d95e50bd35007e532f3d1cdb0b3892e7dc5314.tar.gz chromium_src-c0d95e50bd35007e532f3d1cdb0b3892e7dc5314.tar.bz2 |
Support tracking of IPC messages as tasks in profiler
Also started to do more cleanup, including creating
a base/profiler directory, and moving parts of the
over-sized tracked_objects.* into that directory.
r=rtenneti
Review URL: http://codereview.chromium.org/8480014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108752 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/location.h')
-rw-r--r-- | base/location.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/base/location.h b/base/location.h index 523bfaf..2fbe62c 100644 --- a/base/location.h +++ b/base/location.h @@ -72,11 +72,13 @@ class BASE_EXPORT Location { BASE_EXPORT const void* GetProgramCounter(); // Define a macro to record the current source location. -#define FROM_HERE tracked_objects::Location( \ - __FUNCTION__, \ - __FILE__, \ - __LINE__, \ - tracked_objects::GetProgramCounter()) \ +#define FROM_HERE FROM_HERE_WITH_EXPLICIT_FUNCTION(__FUNCTION__) + +#define FROM_HERE_WITH_EXPLICIT_FUNCTION(function_name) \ + ::tracked_objects::Location(function_name, \ + __FILE__, \ + __LINE__, \ + ::tracked_objects::GetProgramCounter()) } // namespace tracked_objects |