metrics

Eclipse metrics plugin suggestion [closed]

断了今生、忘了曾经 提交于 2019-12-02 19:57:19
I'm looking for a tool to give me some code metrics (total LOCs, LOC/Class, # of external references/class, etc...). Does anyone know a good eclipse plugin that could provide me some some code metrics? akf here is one called Metrics. edit: i put together a short program for this screenshot in eclipse 3.3.1.1: Edit 2 Metrics New version Thanks @mpartel for the link CodePro AnalytiX originally form Instantiations is now free at Google: http://code.google.com/javadevtools/download-codepro.html Sorry for the necropost but it seems like the right thing to do since this was my starting point. Try

Android layout examples that match “Metrics and Grids” recommendations

血红的双手。 提交于 2019-12-02 17:27:21
After trying to make sense of the Metrics and Grids page of the (fairly new) Android Design website, I gave up on a lot of things. So, basically, I'm trying to find the original layouts that are used in Android 4, so that I can apply the same concepts. To make this question more objective and not fail under the "too broad" axe of stackoverflow, I ask you for the layout that is used to recreate, exactly and fully , the examples on that page. Did Google provide them in the samples? Maybe a well known didactic repository that strives to conform with standards? Just as an example, it's not clear

HikariCP监控指标介绍和应用

余生颓废 提交于 2019-12-02 16:59:33
概述 HikariCP提供了一些监控指标,他的监控指标都是基于MicroMeter提供出来的,然后支持Prometheus和Dropwizard。本次我们将讨论一下HikariCp的监控指标有哪些,为什么提供这些指标,以及咱们如何去做监控。 监控指标 就像 com.zaxxer.hikari.metrics.PoolStats 提供的那样,几个重要的指标都存储在poolState中。 totalConnections 总连接数,包括空闲的连接和使用中的连接。 idleConnections 空闲连接数 activeConnections 活跃连接数 totalConnections = activeConnection + idleConnections pendingThreads 正在等待连接的线程数量。排查性能问题时,这个指标是一个重要的参考指标,如果正在等待连接的线程在相当一段时间内数量较多,可以考虑扩大数据库连接池的size。(即HikariCP的maxPoolSize) maxConnections 最大连接数,统计指标,统计到目前为止连接的最大数量。 minConnections 最小连接数,统计指标,统计到目前为止连接的最小数量。 usageTime 每个连接使用的时间,当连接被回收的时候会记录此指标: com.zaxxer.hikari.pool

Jensen-Shannon Divergence

核能气质少年 提交于 2019-12-02 16:50:07
I have another question that I was hoping someone could help me with. I'm using the Jensen-Shannon-Divergence to measure the similarity between two probability distributions. The similarity scores appear to be correct in the sense that they fall between 1 and 0 given that one uses the base 2 logarithm, with 0 meaning that the distributions are equal. However, I'm not sure whether there is in fact an error somewhere and was wondering whether someone might be able to say 'yes it's correct' or 'no, you did something wrong'. Here is the code: from numpy import zeros, array from math import sqrt,

使用Prometheus Operator 监控Kubernetes(15)

心不动则不痛 提交于 2019-12-02 16:49:22
一、Prometheus概述:    Prometheus 是一个开源系统监测和警报工具箱。 Prometheus Operator 是 CoreOS 开发的基于 Prometheus 的 Kubernetes 监控方案,也可能是目前功能最全面的开源方案。 主要特征:   1)多维数据模型(时间序列由metri和key/value定义)   2)灵活的查询语言   3)不依赖分布式存储   4)采用 http 协议,使用 pull 拉取数据   5)可以通过push gateway进行时序列数据推送   6)可通过服务发现或静态配置发现目标   7)多种可视化图表及仪表盘支持 Prometheus架构如下:   Prometheus组件包括:Prometheus server、push gateway 、alertmanager、Web UI等。   Prometheus server 定期从数据源拉取数据,然后将数据持久化到磁盘。Prometheus 可以配置 rules,然后定时查询数据,当条件触发的时候,会将 alert 推送到配置的 Alertmanager。Alertmanager 收到警告的时候,可以根据配置,聚合并记录新时间序列,或者生成警报。同时还可以使用其他 API 或者 Grafana 来将收集到的数据进行可视化。 Prometheus Server  

Why use statsd when graphite's Carbon aggregator can do the same job?

南楼画角 提交于 2019-12-02 16:20:48
I have been exploring the Graphite graphing tool for showing metrics from multiple servers, and it seems that the 'recommended' way is to send all metrics data to StatsD first. StatsD aggregates the data and sends it to graphite (or rather, Carbon). In my case, I want to do simple aggregations like sum and average on metrics across servers and plot that in graphite. Graphite comes with a Carbon aggregator which can do this. StatsD does not even provide aggregation of the kind I am talking about. My question is - should I use statsd at all for my use case? Anything I am missing here? StatsD

Calculate Cyclomatic Complexity for Javascript [closed]

大城市里の小女人 提交于 2019-12-02 15:08:28
Are there any tools available for calculating Cyclomatic Complexity in Javascript? I've found it a very helpful metric in the past while working on server side code, and would like to be able to use it for the client side Javascript I write. I helped write a tool to perform software complexity analysis on JavaScript projects: complexity-report It reports a bunch of different complexity metrics: lines of code, number of parameters, cyclomatic complexity, cyclomatic density, Halstead complexity measures, the maintainability index, first-order density, change cost and core size. It is released

What are the most useful software development metrics? [closed]

好久不见. 提交于 2019-12-02 14:18:35
I would like to track metrics that can be used to improve my team’s software development process, improve time estimates, and detect special case variations that need to be addressed during the project execution. Please limit each answer to a single metric, describe how to use it, and vote up the good answers. Mikeage (source: osnews.com ) ROI. The total amount of revenue brought in by the software minus the total amount of costs to produce the software. Breakdown the costs by percentage of total cost and isolate your poorest performing and most expensive area in terms of return-on-investment.

Graphing a process's memory usage

怎甘沉沦 提交于 2019-12-02 14:03:25
Does anyone know of a tool to visually show the memory usage of a selected process on Ubuntu? ps aux will show a numerical snapshot, but I'd really like a line I can watch change as I hammer the process and hopefully see unexpected behaviours. Has anyone got any suggestions? LovesTha I couldn't find any real tools to do it. But I have found a neat small set of scripts that'll do it. Using this little bash loop to do the logging: while true; do ps -C <ProgramName> -o pid=,%mem=,vsz= >> /tmp/mem.log gnuplot /tmp/show_mem.plt sleep 1 done & This will create a nice little log file of memory usage

Eclipse count lines of code

*爱你&永不变心* 提交于 2019-12-02 13:53:32
I've tried the Metrics plugin and although it's nice and all, it's not what my boss is looking for. It counts a line with just one } as a line and he doesn't want that to count as "its not a line, its a style choice". I also need to generate some form of report about the metrics provided. Are there any good tools for this? Install the Eclipse Metrics Plugin . To create a HTML report (with optional XML and CSV) right-click a project -> Export -> Other -> Metrics . You can adjust the Lines of Code metrics by ignoring blank and comment-only lines or exclude Javadoc if you want. To do this check