Skip to content

Conversation

@asurkov
Copy link
Contributor

@asurkov asurkov commented Nov 4, 2017

I don't know if we really need it, but I find these methods useful for bottlenecks analysis - just put a bunch of recordTime {} calls, which could be nested, and you will see timing of which block takes what time.

Note, the PR contains changes from another PR, just ignore them, you are interested in the last one.

@asurkov asurkov requested a review from astansler November 4, 2017 15:59
@asurkov asurkov changed the base branch from master to develop November 4, 2017 16:00
/**
* Records a numeric metric of given tag.
*/
fun recordMetric(tag: String, metric: Long)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What this function used for? Storing of numbers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, just accumulating numeric values, for example, it's useful, when you're recording the timing of line insertions and removals, and you want to know the ratio of inserted and removed lines. It is a very basic feature for sure, but often helpful.

@asurkov asurkov merged commit 969e5a1 into develop Nov 6, 2017
@asurkov asurkov deleted the metrics branch November 6, 2017 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants