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

Side by Side Diff: base/location.h

Issue 8496008: Revert 108752 - Support tracking of IPC messages as tasks in profiler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/base.gypi ('k') | base/profiler/scoped_profile.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef BASE_LOCATION_H_ 5 #ifndef BASE_LOCATION_H_
6 #define BASE_LOCATION_H_ 6 #define BASE_LOCATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/base_export.h" 10 #include "base/base_export.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 private: 65 private:
66 const char* function_name_; 66 const char* function_name_;
67 const char* file_name_; 67 const char* file_name_;
68 int line_number_; 68 int line_number_;
69 const void* program_counter_; 69 const void* program_counter_;
70 }; 70 };
71 71
72 BASE_EXPORT const void* GetProgramCounter(); 72 BASE_EXPORT const void* GetProgramCounter();
73 73
74 // Define a macro to record the current source location. 74 // Define a macro to record the current source location.
75 #define FROM_HERE FROM_HERE_WITH_EXPLICIT_FUNCTION(__FUNCTION__) 75 #define FROM_HERE tracked_objects::Location( \
76 76 __FUNCTION__, \
77 #define FROM_HERE_WITH_EXPLICIT_FUNCTION(function_name) \ 77 __FILE__, \
78 ::tracked_objects::Location(function_name, \ 78 __LINE__, \
79 __FILE__, \ 79 tracked_objects::GetProgramCounter()) \
80 __LINE__, \
81 ::tracked_objects::GetProgramCounter())
82 80
83 } // namespace tracked_objects 81 } // namespace tracked_objects
84 82
85 #endif // BASE_LOCATION_H_ 83 #endif // BASE_LOCATION_H_
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/profiler/scoped_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698