Questions tagged [metrics]

Software metrics are quantitative data related to software.

A software metric is an objective and reproducible quantitative measure of some property of the product, its source code, its specification, or the development process that was applied. These can refer to development time metrics such as or runtime metrics such as .

Although the generic term "metrics" is usually used to refer to the latter especially in server-side development. For further information about metrics and their importance in modern software development you can read the seminal work Measure Anything Measure Everything by Ian Malpass.

This tag should be applied to general questions about metrics or questions that span multiple metrics types or implementations or if your are not sure which specific tag applies. For questions specific to a particular metric system more specific tags such as ,, and so forth.

2802 questions
352
votes
9 answers

How to count lines of Java code using IntelliJ IDEA?

How to count lines of Java code using IntelliJ IDEA?
Gary
  • 6,357
  • 5
  • 30
  • 36
321
votes
25 answers

Big-O for Eight Year Olds?

I'm asking more about what this means to my code. I understand the concepts mathematically, I just have a hard time wrapping my head around what they mean conceptually. For example, if one were to perform an O(1) operation on a data structure, I…
Jason Baker
  • 192,085
  • 135
  • 376
  • 510
129
votes
15 answers

Mythical man month 10 lines per developer day - how close on large projects?

Everybody always says that they can beat the "10 lines per developer per day" from the "Mythical Man Month", and starting a project, I can usually get a couple hundred lines in in a day. But at my previous employer, all the developers were very…
Matthias Wandel
  • 6,383
  • 10
  • 33
  • 31
115
votes
3 answers

What are the best Haskell libraries to operationalize a program?

If I'm going to put a program into production, there are several things I need that program to do in order to consider it "operationalized" – that is, running and maintainable in a measurable and verifiable way by both engineers and operations…
Alex Payne
  • 1,141
  • 1
  • 8
  • 9
114
votes
6 answers

What is the mAP metric and how is it calculated?

In Computer Vision and Object Detection, a common evaluation method is mAP. What is it and how is it calculated?
cerebrou
  • 5,353
  • 15
  • 48
  • 80
112
votes
10 answers

Eclipse count lines of code

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…
confusified
  • 2,320
  • 7
  • 22
  • 29
91
votes
7 answers

GUI for statsd data other than Graphite?

I just installed graphite/statsd for production use. I'm really happy with it, but one of my co-workers asked me if there was a way to make it look prettier. Honestly, I can't say that I haven't wonder the same. Are there alternatives to the…
Blake Taylor
  • 9,217
  • 5
  • 38
  • 41
87
votes
19 answers

Calculate code metrics

Are there any tools available that will calculate code metrics (for example number of code lines, cyclomatic complexity, coupling, cohesion) for your project and over time produce a graph showing the trends?
Bjorn Reppen
  • 22,007
  • 9
  • 64
  • 88
76
votes
1 answer

DropWizard Metrics Meters vs Timers

I am learning the DropWizard Metrics library (formerly Coda Hale metrics) and I am confused as to when I should be using Meters vs Timers. According to the docs: Meter: A meter measures the rate at which a set of events occur and: Timer: A timer…
smeeb
  • 27,777
  • 57
  • 250
  • 447
70
votes
5 answers

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

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,…
talonx
  • 1,762
  • 1
  • 15
  • 33
69
votes
3 answers

When does DynamoDB throttle request?

In the answer to "How is Amazon DynamoDB throughput calculated and limited?" it's been suggested, that DynamoDB throttles request whenever you exceed provisioned throughput on per second basis. However, this contradicts my experience. I've table…
vartec
  • 131,205
  • 36
  • 218
  • 244
57
votes
7 answers

Graphing a process's memory usage

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…
BanksySan
  • 27,362
  • 33
  • 117
  • 216
56
votes
15 answers

Do you find cyclomatic complexity a useful measure?

I've been playing around with measuring the cyclomatic complexity of a big code base. Cyclomatic complexity is the number of linearly independent paths through a program's source code and there are lots of free tools for your language of choice. The…
elasticrat
  • 7,060
  • 5
  • 36
  • 36
56
votes
45 answers

When, if ever, is "number of lines of code" a useful metric?

Some people claim that code's worst enemy is its size, and I tend to agree. Yet every day you keep hearing things like I write blah lines of code in a day. I own x lines of code. Windows is x million lines of code. Question: When is "#lines of…
user15071
  • 3,391
  • 8
  • 31
  • 31
55
votes
7 answers

Calculate Cyclomatic Complexity for Javascript

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.
Karl
  • 1,615
  • 1
  • 14
  • 20
1
2 3
99 100