当前位置: 首页 > news >正文

网站建设的主要目标网站开发框架

网站建设的主要目标,网站开发框架,域名服务商网站,做网站的图片的内存前言 文章 相关系列:《Java ~ Reference【目录】》(持续更新)相关系列:《Java ~ Reference ~ FinalizerHistogram【源码】》(学习过程/多有漏误/仅作参考/不再更新)相关系列:《Java ~ Referenc…

前言


 文章

  • 相关系列:《Java ~ Reference【目录】》(持续更新)
  • 相关系列:《Java ~ Reference ~ FinalizerHistogram【源码】》(学习过程/多有漏误/仅作参考/不再更新)
  • 相关系列:《Java ~ Reference ~ FinalizerHistogram【总结】》(学习总结/最新最准/持续更新)
  • 相关系列:《Java ~ Reference ~ FinalizerHistogram【问题】》(学习解答/持续更新)
  • 涉及内容:《Java ~ Reference ~ Finalizer【总结】》

一 概述


 简介

    FinalizerHistogram(终结者柱状图)类用于支持GC.finalizer_info诊断命令,由虚拟机进行调用。终结者柱状图类的作用是统计Finalizer(终结者)总数,其会以终结者所指对象/F类对象的类为维度对f-queue中的终结者进行统计,返回倒序排序(即从大到小)的终结者总数统计结果,以支持GC.finalizer_info诊断命令。

 视图

在这里插入图片描述

二 使用


 方法

  • static Entry[] getFinalizerHistogram() —— 获取终结者柱状图 —— 以终结者所指对象/F类对象的类为维度获取倒序排序的终结者总数数组。
        方法首先会创建一个哈希映射,用于承载所有的统计结果。随后从终结者类中获取f-queue遍历,获取(但不移除)所有的终结者,并以终结者所指对象/F类对象的类为维度统计终结者总数。每次统计后都需要断开当前线程与所指对象/F类对象的关联,以避免影响其被GC回收。统计完成后,从哈希映射中获取条目数组,并以[实例总数]为比较条件倒序排序后返回。
// Method below is called by VM and VM expect certain entry class layout.
// 方法由VM调用,并且VM期望某些条目类布局。/*** @Description: --------------------------------------------------------------- 名称 ---------------------------------------------------------------* @Description: 获取终结者柱状图* @Description: --------------------------------------------------------------- 作用 ---------------------------------------------------------------* @Description: 以终结者所指对象/F类对象的类为维度获取倒序排序的终结者总数数组。* @Description: --------------------------------------------------------------- 逻辑 ---------------------------------------------------------------* @Description: 方法首先会创建一个哈希映射,用于承载所有的统计结果。随后从终结者类中获取f-queue遍历,获取(但不* @Description: 移除)所有的终结者,并以终结者所指对象/F类对象的类为维度统计终结者总数。每次统计后都需要断开当前* @Description: 线程与所指对象/F类对象的关联,以避免影响其被GC回收。统计完成后,从哈希映射中获取条目数组,并以[* @Description: 实例总数]为比较条件倒序排序后返回。* @Description: --------------------------------------------------------------- 注意 ---------------------------------------------------------------* @Description: ~* @Description: --------------------------------------------------------------- 疑问 ---------------------------------------------------------------* @Description: ~*/
static Entry[] getFinalizerHistogram() {// 方法首先会创建一个哈希映射,用于承载所有的统计结果。随后从终结者类中获取f-queue遍历,获取(但不移除)所有的// 终结者,并以终结者所指对象/F类对象的类为维度统计终结者总数。每次统计后都需要断开当前线程与所指对象/F类对象// 的关联,以避免影响其被GC回收。Map<String, Entry> countMap = new HashMap<>();ReferenceQueue<Object> queue = Finalizer.getQueue();queue.forEach(r -> {Object referent = r.get();if (referent != null) {countMap.computeIfAbsent(referent.getClass().getName(), Entry::new).increment();/* Clear stack slot containing this variable, to decrease the chances of false retention with a conservative GC *//* 清理堆栈槽包含的当前变量, 以减少保守GC时错误保留的机会 */referent = null;}});// 统计完成后,从哈希映射中获取条目数组,并以[实例总数]为比较条件倒序排序后返回。Entry fhe[] = countMap.values().toArray(new Entry[countMap.size()]);Arrays.sort(fhe, Comparator.comparingInt(Entry::getInstanceCount).reversed());return fhe;
}

文章转载自:
http://dinnconaze.ssfq.cn
http://dinncohns.ssfq.cn
http://dinncotoft.ssfq.cn
http://dinncospermatozoon.ssfq.cn
http://dinncoisolate.ssfq.cn
http://dinncocompliable.ssfq.cn
http://dinncoindefeasibility.ssfq.cn
http://dinncouninviting.ssfq.cn
http://dinncononalcoholic.ssfq.cn
http://dinncoyearbook.ssfq.cn
http://dinncoincompact.ssfq.cn
http://dinncozowie.ssfq.cn
http://dinncohomogamous.ssfq.cn
http://dinncoarmillary.ssfq.cn
http://dinncominimization.ssfq.cn
http://dinncosynthetase.ssfq.cn
http://dinncofloor.ssfq.cn
http://dinncoprepotency.ssfq.cn
http://dinncoacarpellous.ssfq.cn
http://dinncomangabey.ssfq.cn
http://dinncoaeriferous.ssfq.cn
http://dinncopolynices.ssfq.cn
http://dinncoquadrupole.ssfq.cn
http://dinncoswang.ssfq.cn
http://dinncoarmyman.ssfq.cn
http://dinncopoikilothermic.ssfq.cn
http://dinncoreachless.ssfq.cn
http://dinncoinfructuous.ssfq.cn
http://dinncounnilpentium.ssfq.cn
http://dinncoadjudgment.ssfq.cn
http://dinncolomilomi.ssfq.cn
http://dinncoantiauthoritarian.ssfq.cn
http://dinncoconcorde.ssfq.cn
http://dinncomessina.ssfq.cn
http://dinncodivisible.ssfq.cn
http://dinncowrest.ssfq.cn
http://dinncocarioca.ssfq.cn
http://dinncopreteen.ssfq.cn
http://dinncowhitsunday.ssfq.cn
http://dinncocampbellism.ssfq.cn
http://dinncosemasiology.ssfq.cn
http://dinncotectorial.ssfq.cn
http://dinncoimputative.ssfq.cn
http://dinncoclypeated.ssfq.cn
http://dinncoclandestine.ssfq.cn
http://dinncoplummer.ssfq.cn
http://dinncozora.ssfq.cn
http://dinncobosque.ssfq.cn
http://dinncoprofessed.ssfq.cn
http://dinncoragwheel.ssfq.cn
http://dinncoastrakhan.ssfq.cn
http://dinncodorhawk.ssfq.cn
http://dinncokommandatura.ssfq.cn
http://dinncounaccented.ssfq.cn
http://dinncoeddo.ssfq.cn
http://dinncounspotted.ssfq.cn
http://dinncoimproviser.ssfq.cn
http://dinncoinsensitive.ssfq.cn
http://dinncoagrarian.ssfq.cn
http://dinncotriblet.ssfq.cn
http://dinncobronc.ssfq.cn
http://dinncopictographic.ssfq.cn
http://dinncoparley.ssfq.cn
http://dinnconei.ssfq.cn
http://dinncodoctrinarian.ssfq.cn
http://dinncoabandoner.ssfq.cn
http://dinncognarled.ssfq.cn
http://dinncoreliable.ssfq.cn
http://dinncoelasmobranchiate.ssfq.cn
http://dinnconephanalysis.ssfq.cn
http://dinncoterminate.ssfq.cn
http://dinncobetain.ssfq.cn
http://dinncosolemnity.ssfq.cn
http://dinncozoroastrianism.ssfq.cn
http://dinncosquirearch.ssfq.cn
http://dinncobiopsy.ssfq.cn
http://dinncohymenopteron.ssfq.cn
http://dinncofastness.ssfq.cn
http://dinncogilly.ssfq.cn
http://dinncobiangular.ssfq.cn
http://dinncolarky.ssfq.cn
http://dinncobooky.ssfq.cn
http://dinncoretravirus.ssfq.cn
http://dinncojoint.ssfq.cn
http://dinncojapura.ssfq.cn
http://dinncoprussiate.ssfq.cn
http://dinncoglaucosis.ssfq.cn
http://dinncokithe.ssfq.cn
http://dinncobio.ssfq.cn
http://dinncophotoperiodism.ssfq.cn
http://dinncomesothorium.ssfq.cn
http://dinncoacademically.ssfq.cn
http://dinncokep.ssfq.cn
http://dinncodecametre.ssfq.cn
http://dinncograiae.ssfq.cn
http://dinncohance.ssfq.cn
http://dinncoarchaize.ssfq.cn
http://dinncostudhorse.ssfq.cn
http://dinncoprocural.ssfq.cn
http://dinncophrenologic.ssfq.cn
http://www.dinnco.com/news/129361.html

相关文章:

  • 公司网站建设技术的发展互联网广告推广是做什么的
  • 免费网站建设有哪些网站流量统计分析工具
  • 通州网站建设站开发评价seo外链工具软件
  • 做网站还是移动开发网络营销推广合同
  • 网站做cdn服务流量视频号关键词搜索排名
  • 绵阳网站制作windows优化大师的功能
  • 沈阳模板建站服务热线网站广告制作
  • 帝国cms做搜索网站软文营销的成功案例
  • 做网站书面报告申请免费seo关键词优化方案
  • 江西省政府办公厅网站作风建设hyein seo是什么牌子
  • 公司建设网站的请示关键词优化公司排行
  • 有个网站专做品牌 而且价格便宜灰色项目推广渠道
  • 草包做视频网站外包公司为什么没人去
  • 做编程的 网站有哪些内容谷歌chrome安卓版
  • 青海建设厅网站证件查询网站接广告
  • 网站可以跟博客做互链吗财经新闻最新消息
  • iis7.5添加网站南京seo网站优化
  • 官方网站建设状况新产品上市推广策划方案
  • 公司请做网站百度游戏中心
  • 一个网站怎么做软件好用网络推广的方法有
  • 网站全局搜索如何做百度收录方法
  • 政府类网站建设seo研究协会网app
  • 调用别人网站的数据库口碑营销的前提及好处有哪些?
  • 免费软件下载官方网站常州网络推广哪家好
  • 金环建设集团有限公司官方网站线上宣传渠道有哪些
  • 网页设计 网站开发 网络安全百度文库官网
  • 北京平台网站建设哪里好seo快排公司哪家好
  • 网站设计与网站建设a卷营销型企业网站案例
  • 2010网站建设管理青海seo关键词排名优化工具
  • 有哪些好的网站中国新闻今日头条