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

Unified Diff: src/counters.h

Issue 412513003: Version 3.27.34.7 (merged r22223) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.27
Patch Set: updates Created 6 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 | « src/api.cc ('k') | 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 f7ff36b75d53dd44c3cdb13a47b6a564393b8960..a7d00dcc80f512636baa3f2aa5b6a890abb50773 100644
--- a/src/counters.h
+++ b/src/counters.h
@@ -143,6 +143,9 @@ class StatsCounter {
return loc;
}
+ // Reset the cached internal pointer.
+ void Reset() { lookup_done_ = false; }
+
protected:
// Returns the cached address of this counter location.
int* GetPtr() {
@@ -629,6 +632,7 @@ class Counters {
stats_counter_count
};
+ void ResetCounters();
void ResetHistograms();
private:
« no previous file with comments | « src/api.cc ('k') | src/counters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698