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

Unified Diff: include/v8-profiler.h

Issue 259803002: Add timestamps to CPU profile samples. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix race Created 6 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 | « no previous file | src/api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-profiler.h
diff --git a/include/v8-profiler.h b/include/v8-profiler.h
index 026715fda785463d8c743313576ac8bfcadce29d..483fd933f8c2150e1f6521eaca4f5b1979504001 100644
--- a/include/v8-profiler.h
+++ b/include/v8-profiler.h
@@ -106,28 +106,35 @@ class V8_EXPORT CpuProfile {
const CpuProfileNode* GetTopDownRoot() const;
/**
- * Returns number of samples recorded. The samples are not recorded unless
- * |record_samples| parameter of CpuProfiler::StartCpuProfiling is true.
- */
+ * Returns number of samples recorded. The samples are not recorded unless
+ * |record_samples| parameter of CpuProfiler::StartCpuProfiling is true.
+ */
int GetSamplesCount() const;
/**
- * Returns profile node corresponding to the top frame the sample at
- * the given index.
- */
+ * Returns profile node corresponding to the top frame the sample at
+ * the given index.
+ */
const CpuProfileNode* GetSample(int index) const;
/**
- * Returns time when the profile recording was started (in microseconds)
- * since some unspecified starting point.
- */
+ * Returns the timestamp of the sample. The timestamp is the number of
+ * microseconds since some unspecified starting point.
+ * The point is equal to the starting point used by GetStartTime.
+ */
+ int64_t GetSampleTimestamp(int index) const;
+
+ /**
+ * Returns time when the profile recording was started (in microseconds)
+ * since some unspecified starting point.
+ */
int64_t GetStartTime() const;
/**
- * Returns time when the profile recording was stopped (in microseconds)
- * since some unspecified starting point. The point is however equal to the
- * starting point used by GetStartTime.
- */
+ * Returns time when the profile recording was stopped (in microseconds)
+ * since some unspecified starting point.
+ * The point is equal to the starting point used by GetStartTime.
+ */
int64_t GetEndTime() const;
/**
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698