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

Unified Diff: src/base/platform/time.h

Issue 367033002: Reland "Linux perf tool support update + refactoring." (r22146, attempt #5) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: git cl format Created 6 years, 6 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/base/platform/platform-win32.cc ('k') | src/base/platform/time.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/platform/time.h
diff --git a/src/base/platform/time.h b/src/base/platform/time.h
index aed03b10eba2ce086ad5a33f39214b2c0d97a748..b348236ff1ccc59323e6eba66b1b4a91e20291ad 100644
--- a/src/base/platform/time.h
+++ b/src/base/platform/time.h
@@ -315,6 +315,13 @@ class TimeTicks V8_FINAL {
// Returns true if the high-resolution clock is working on this system.
static bool IsHighResolutionClockWorking();
+ // Returns Linux kernel timestamp for generating profiler events. This method
+ // returns null TimeTicks if the kernel cannot provide the timestamps (e.g.,
+ // on non-Linux OS or if the kernel module for timestamps is not loaded).
+
+ static TimeTicks KernelTimestampNow();
+ static bool KernelTimestampAvailable();
+
// Returns true if this object has not been initialized.
bool IsNull() const { return ticks_ == 0; }
« no previous file with comments | « src/base/platform/platform-win32.cc ('k') | src/base/platform/time.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698