Github user wangli1426 commented on the pull request:
https://github.com/apache/storm/pull/716#issuecomment-138752669
@HeartSaVioR
Thanks for voting +1.
By the way, in my original design, I didn't use timer to update the
histograms. Instant, the histograms were updated in ```notify()```. However,
such a design requires to call ```System.currentTimeMills()``` every time when
```notify()``` is called, to determine whether an update to the histograms is
needed. ```System.currentTimeMills()``` is fairly expensive to be called so
frequently. So, in current implementation, I use a timer to periodically update
the histograms.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---