本文整理汇总了C++中AdaptiveWeightedAverage类的典型用法代码示例。如果您正苦于以下问题:C++ AdaptiveWeightedAverage类的具体用法?C++ AdaptiveWeightedAverage怎么用?C++ AdaptiveWeightedAverage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AdaptiveWeightedAverage类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: allocating_threads_avg
// Accessors
unsigned allocating_threads_avg() {
return MAX2((unsigned)(_allocating_threads_avg.average() + 0.5), 1U);
}
示例2: msc_gc_cost
// Cost of STW mark-sweep-compact tenured gen collection.
double msc_gc_cost() const {
return MAX2(0.0F, _avg_msc_gc_cost->average());
}
示例3: major_gc_interval_average_for_decay
// Average interval between major collections to be used
// in calculating the decaying major gc cost. An overestimate
// of this time would be a conservative estimate because
// this time is used to decide if the major GC cost
// should be decayed (i.e., if the time since the last
// major gc is long compared to the time returned here,
// then the major GC cost will be decayed). See the
// implementations for the specifics.
virtual double major_gc_interval_average_for_decay() const {
return _avg_major_interval->average();
}
示例4: minor_gc_cost
double minor_gc_cost() const {
return MAX2(0.0,_avg_minor_gc_cost->average());
}
示例5: average_old_live_in_bytes
size_t average_old_live_in_bytes() const {
return (size_t) _avg_old_live->average();
}
示例6: live_space
// Footprint accessors
size_t live_space() const {
return _avg_base_footprint->average() +
_avg_young_live->average() +
_avg_old_live->average();
}