summaryrefslogtreecommitdiffstats
path: root/chromium/base/profiler/scoped_profile.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/profiler/scoped_profile.h')
-rw-r--r--chromium/base/profiler/scoped_profile.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/chromium/base/profiler/scoped_profile.h b/chromium/base/profiler/scoped_profile.h
index c1e283026dc..2c4105d24aa 100644
--- a/chromium/base/profiler/scoped_profile.h
+++ b/chromium/base/profiler/scoped_profile.h
@@ -30,6 +30,14 @@
FROM_HERE_WITH_EXPLICIT_FUNCTION(#dispatch_function_name), \
::tracked_objects::ScopedProfile::ENABLED)
+// Same as TRACK_RUN_IN_THIS_SCOPED_REGION except that there's an extra param
+// which is concatenated with the function name for better filtering.
+#define TRACK_SCOPED_REGION(category_name, dispatch_function_name) \
+ ::tracked_objects::ScopedProfile LINE_BASED_VARIABLE_NAME_FOR_PROFILING( \
+ FROM_HERE_WITH_EXPLICIT_FUNCTION( \
+ "[" category_name "]" dispatch_function_name), \
+ ::tracked_objects::ScopedProfile::ENABLED)
+
namespace tracked_objects {
class Births;
@@ -54,4 +62,4 @@ class BASE_EXPORT ScopedProfile {
} // namespace tracked_objects
-#endif // BASE_PROFILER_SCOPED_PROFILE_H_
+#endif // BASE_PROFILER_SCOPED_PROFILE_H_