Skip to content

#time: record on all block exits.#38

Merged
degemer merged 1 commit intoDataDog:masterfrom
nelhage:ensure-time
Oct 21, 2016
Merged

#time: record on all block exits.#38
degemer merged 1 commit intoDataDog:masterfrom
nelhage:ensure-time

Conversation

@nelhage
Copy link
Copy Markdown
Contributor

@nelhage nelhage commented Oct 20, 2016

The previous implementation would not report if a block exited via
early-return, or other abnormal terminations (e.g. break or
throw). That is confusing behavior; I expect a time block to always
report the time spend inside the passed the block.

The previous implementation would not report if a block exited via
early-`return`, or other abnormal terminations (e.g. `break` or
`throw`). That is confusing behavior; I expect a `time` block to always
report the time spend inside the passed the block.
@degemer
Copy link
Copy Markdown
Member

degemer commented Oct 21, 2016

Thank you! Merging it, will be part of the next release.

@degemer degemer merged commit 5134c35 into DataDog:master Oct 21, 2016
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.

2 participants