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

Unified Diff: src/vm-state.h

Issue 596533002: Initial implementation of GetStackSample sampling profiler API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Exposed VM state. Created 6 years, 3 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
Index: src/vm-state.h
diff --git a/src/vm-state.h b/src/vm-state.h
index a72180ca45f4dcee0485209cff3162e5d73a8cb5..1f08a21b72cdec1aaad90c13dc7e21ce335410a2 100644
--- a/src/vm-state.h
+++ b/src/vm-state.h
@@ -11,6 +11,12 @@
namespace v8 {
namespace internal {
+// Logging and profiling. A StateTag represents a possible state of
+// the VM. The logger maintains a stack of these. Creating a VMState
+// object enters a state by pushing on the stack, and destroying a
+// VMState object leaves a state by popping the current state from the
+// stack.
+
yurys 2014/09/23 14:57:53 style: remove empty line.
alph 2014/09/24 13:12:18 Done.
template <StateTag Tag>
class VMState BASE_EMBEDDED {
public:
« no previous file with comments | « src/sampler.cc ('k') | test/cctest/cctest.gyp » ('j') | test/cctest/test-sampler-api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698