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

Unified Diff: include/v8-profiler.h

Issue 21918002: Add start and end profiling time to v8::CpuProfile (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 cf2834130053656f5ecd7d30d08d1f0627544d40..c4450599f096ba8d7baedff0ee4a51b8a4e490a8 100644
--- a/include/v8-profiler.h
+++ b/include/v8-profiler.h
@@ -149,6 +149,18 @@ class V8EXPORT CpuProfile {
const CpuProfileNode* GetSample(int index) const;
/**
+ * Returns time when the profile recording started (in milliseconds
+ * since the Epoch ).
alph 2013/08/02 16:43:49 nit: space after "Epoch"?
yurys 2013/08/02 16:46:02 Done.
+ */
+ double GetStartTime() const;
+
+ /**
+ * Returns time when the profile recording was stopped (in milliseconds
+ * since the Epoch ).
+ */
+ double GetEndTime() const;
+
+ /**
* Deletes the profile and removes it from CpuProfiler's list.
* All pointers to nodes previously returned become invalid.
* Profiles with the same uid but obtained using different
« 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