当前位置: 首页>>代码示例>>C++>>正文


C++ AdaptiveWeightedAverage::average方法代码示例

本文整理汇总了C++中AdaptiveWeightedAverage::average方法的典型用法代码示例。如果您正苦于以下问题:C++ AdaptiveWeightedAverage::average方法的具体用法?C++ AdaptiveWeightedAverage::average怎么用?C++ AdaptiveWeightedAverage::average使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AdaptiveWeightedAverage的用法示例。


在下文中一共展示了AdaptiveWeightedAverage::average方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: allocating_threads_avg

 // Accessors
 unsigned allocating_threads_avg() {
   return MAX2((unsigned)(_allocating_threads_avg.average() + 0.5), 1U);
 }
开发者ID:GudzonskiyYastreb,项目名称:openjdk-fontfix,代码行数:4,代码来源:threadLocalAllocBuffer.hpp

示例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());
 }
开发者ID:stkaushal,项目名称:jdk8_tl,代码行数:4,代码来源:cmsAdaptiveSizePolicy.hpp

示例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();
 }
开发者ID:GregBowyer,项目名称:ManagedRuntimeInitiative,代码行数:11,代码来源:adaptiveSizePolicy.hpp

示例4: minor_gc_cost

  double minor_gc_cost() const {
return MAX2(0.0,_avg_minor_gc_cost->average());
  }
开发者ID:GregBowyer,项目名称:ManagedRuntimeInitiative,代码行数:3,代码来源:adaptiveSizePolicy.hpp

示例5: average_old_live_in_bytes

 size_t average_old_live_in_bytes() const {
   return (size_t) _avg_old_live->average();
 }
开发者ID:subxiang,项目名称:jdk-source-code,代码行数:3,代码来源:psAdaptiveSizePolicy.hpp

示例6: live_space

 // Footprint accessors
 size_t live_space() const { 
   return _avg_base_footprint->average() +
          _avg_young_live->average() +
          _avg_old_live->average();  
 }
开发者ID:subxiang,项目名称:jdk-source-code,代码行数:6,代码来源:psAdaptiveSizePolicy.hpp


注:本文中的AdaptiveWeightedAverage::average方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。