Support 'min ms to log'
authorAndrey Goder <agoder@fb.com>
Wed, 18 Mar 2015 16:34:09 +0000 (09:34 -0700)
committerNoam Lerner <noamler@fb.com>
Wed, 25 Mar 2015 22:32:43 +0000 (15:32 -0700)
commitf6da18f2c3876b2476ff0390e5d4e1170e385ba4
tree2003e0b7d9f65dc83eb8cd0614bd068ccc0bb14a
parent816b97a7f02a564496b63252642acea109b38360
Support 'min ms to log'

Summary:
Sometimes we only want to log if enough time has passed, e.g. when logging
inside of a loop doing work to detect if things are slow. Add an option for
that.

Test Plan:
build and unit tests of folly/experimental

Reviewed By: lesha@fb.com

Subscribers: trunkagent, folly-diffs@, yfeldblum

FB internal diff: D1909055

Signature: t1:1909055:1426627731:6d3ad94fd71967ec89ffebc90cd2907dd1631d36
folly/experimental/AutoTimer.h
folly/experimental/test/AutoTimerTest.cpp