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

Unified Diff: src/log.h

Issue 1523015: C++ profiles processor: align browser mode with the old implementation, sample VM state. (Closed)
Patch Set: Using Script::type to filter out native scripts. Created 10 years, 8 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/globals.h ('k') | src/log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/log.h
diff --git a/src/log.h b/src/log.h
index 961b100e6691d4ac8add7ae318ebcdf57061d03a..846ab67ded081c2ba4e565c7c919b3d5a5612383 100644
--- a/src/log.h
+++ b/src/log.h
@@ -148,6 +148,11 @@ class Logger {
enum LogEventsAndTags {
LOG_EVENTS_AND_TAGS_LIST(DECLARE_ENUM)
NUMBER_OF_LOG_EVENTS
+#ifdef ENABLE_CPP_PROFILES_PROCESSOR
+ , NATIVE_FUNCTION_TAG
+ , NATIVE_LAZY_COMPILE_TAG
+ , NATIVE_SCRIPT_TAG
+#endif
};
#undef DECLARE_ENUM
@@ -287,6 +292,9 @@ class Logger {
// Used for logging stubs found in the snapshot.
static void LogCodeObjects();
+ // Converts tag to a corresponding NATIVE_... if the script is native.
+ INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*));
+
private:
// Profiler's sampling interval (in milliseconds).
« no previous file with comments | « src/globals.h ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698