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

Side by Side Diff: src/counters.h

Issue 2812543002: Ensure counters are initialized, to avoid init on non-joinable threads. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « src/api.cc ('k') | src/counters.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COUNTERS_H_ 5 #ifndef V8_COUNTERS_H_
6 #define V8_COUNTERS_H_ 6 #define V8_COUNTERS_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/base/atomic-utils.h" 10 #include "src/base/atomic-utils.h"
(...skipping 1255 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 #undef COUNTER_ID 1266 #undef COUNTER_ID
1267 #define COUNTER_ID(name) kCountOfCODE_AGE__##name, \ 1267 #define COUNTER_ID(name) kCountOfCODE_AGE__##name, \
1268 kSizeOfCODE_AGE__##name, 1268 kSizeOfCODE_AGE__##name,
1269 CODE_AGE_LIST_COMPLETE(COUNTER_ID) 1269 CODE_AGE_LIST_COMPLETE(COUNTER_ID)
1270 #undef COUNTER_ID 1270 #undef COUNTER_ID
1271 stats_counter_count 1271 stats_counter_count
1272 }; 1272 };
1273 1273
1274 void ResetCounters(); 1274 void ResetCounters();
1275 void ResetHistograms(); 1275 void ResetHistograms();
1276 void InitializeHistograms();
1277
1276 RuntimeCallStats* runtime_call_stats() { return &runtime_call_stats_; } 1278 RuntimeCallStats* runtime_call_stats() { return &runtime_call_stats_; }
1277 1279
1278 private: 1280 private:
1279 #define HR(name, caption, min, max, num_buckets) Histogram name##_; 1281 #define HR(name, caption, min, max, num_buckets) Histogram name##_;
1280 HISTOGRAM_RANGE_LIST(HR) 1282 HISTOGRAM_RANGE_LIST(HR)
1281 #undef HR 1283 #undef HR
1282 1284
1283 #define HT(name, caption, max, res) HistogramTimer name##_; 1285 #define HT(name, caption, max, res) HistogramTimer name##_;
1284 HISTOGRAM_TIMER_LIST(HT) 1286 HISTOGRAM_TIMER_LIST(HT)
1285 #undef HT 1287 #undef HT
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 1343
1342 explicit Counters(Isolate* isolate); 1344 explicit Counters(Isolate* isolate);
1343 1345
1344 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters); 1346 DISALLOW_IMPLICIT_CONSTRUCTORS(Counters);
1345 }; 1347 };
1346 1348
1347 } // namespace internal 1349 } // namespace internal
1348 } // namespace v8 1350 } // namespace v8
1349 1351
1350 #endif // V8_COUNTERS_H_ 1352 #endif // V8_COUNTERS_H_
OLDNEW
« 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