本文整理汇总了C++中PerfVariable类的典型用法代码示例。如果您正苦于以下问题:C++ PerfVariable类的具体用法?C++ PerfVariable怎么用?C++ PerfVariable使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PerfVariable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: get_live_thread_count
static jlong get_live_thread_count() { return _live_threads_count->get_value() - _exiting_threads_count; }
示例2: update_change_young_gen_for_maj_pauses
inline void update_change_young_gen_for_maj_pauses() {
_change_young_gen_for_maj_pauses_counter->set_value(
ps_size_policy()->change_young_gen_for_maj_pauses());
}
示例3: update_avg_major_interval
inline void update_avg_major_interval() {
_avg_major_interval->set_value(
(jlong)(ps_size_policy()->_avg_major_interval->average() * 1000.0)
);
}
示例4: update_promo_size
inline void update_promo_size() {
_promo_size_counter->set_value(
size_policy()->calculated_promo_size_in_bytes());
}
示例5: update_avg_promoted_padded_avg
inline void update_avg_promoted_padded_avg() {
_avg_promoted_padded_avg_counter->set_value(
(jlong)(ps_size_policy()->avg_promoted()->padded_average())
);
}
示例6: update_decrement_tenuring_threshold_for_gc_cost
inline void update_decrement_tenuring_threshold_for_gc_cost() {
_decrement_tenuring_threshold_for_gc_cost_counter->set_value(
size_policy()->decrement_tenuring_threshold_for_gc_cost());
}
示例7: update_major_collection_slope_counter
inline void update_major_collection_slope_counter() {
_major_collection_slope_counter->set_value(
(jlong)(size_policy()->major_collection_slope() * 1000)
);
}
示例8: update_avg_young_live_counter
inline void update_avg_young_live_counter() {
_avg_young_live_counter->set_value(
(jlong)(size_policy()->avg_young_live()->average())
);
}
示例9: update_avg_survived_dev_counters
inline void update_avg_survived_dev_counters() {
_avg_survived_dev_counter->set_value(
(jlong)(size_policy()->_avg_survived->deviation())
);
}
示例10: update_minor_pause_counter
inline void update_minor_pause_counter() {
_minor_pause_counter->set_value((jlong)
(size_policy()->avg_minor_pause()->last_sample() * 1000.0));
}
示例11: update_minor_gc_cost_counter
inline void update_minor_gc_cost_counter() {
_minor_gc_cost_counter->set_value((jlong)
(size_policy()->minor_gc_cost() * 100.0));
}
示例12: class_method_data_size
static jlong class_method_data_size() {
return (UsePerfData ? _class_methods_size->get_value() : -1);
}
示例13: add_class_method_size
static void add_class_method_size(int size) {
if (UsePerfData) {
_class_methods_size->inc(size);
}
}
示例14: get_daemon_thread_count
static jlong get_daemon_thread_count() { return _daemon_threads_count->get_value() - _exiting_daemon_threads_count; }
示例15: update_young_capacity
inline void update_young_capacity(size_t size_in_bytes) {
_young_capacity_counter->set_value(size_in_bytes);
}