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

Unified Diff: src/counters.h

Issue 2050713002: [--prof] Adding support for RuntimeCallTimerScope based tick separation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: reverting flag changes Created 4 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 | « no previous file | src/counters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/counters.h
diff --git a/src/counters.h b/src/counters.h
index d8ec066ce7d99de000de377241c7cd12c85caebd..2a3a1b8373ce156382ae70b161d587387254a814 100644
--- a/src/counters.h
+++ b/src/counters.h
@@ -493,6 +493,8 @@ struct RuntimeCallCounter {
class RuntimeCallTimer {
public:
RuntimeCallTimer() {}
+ RuntimeCallCounter* counter() { return counter_; }
+ base::ElapsedTimer timer() { return timer_; }
private:
friend class RuntimeCallStats;
@@ -775,6 +777,7 @@ class RuntimeCallStats {
void Print(std::ostream& os);
RuntimeCallStats() { Reset(); }
+ RuntimeCallTimer* current_timer() { return current_timer_; }
private:
// Counter to track recursive time events.
« no previous file with comments | « no previous file | src/counters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698