@Override
        public void run() {
            doSample();

            if (mShouldSample.get()) {
                HandlerThreadFactory.getTimerThreadHandler()
                        .postDelayed(mRunnable, mSampleInterval);
            }
        }
{@link AbstractSampler} sampler defines sampler work flow.
blockcanary-analyzer/src/main/java/com/github/moduth/blockcanary/AbstractSampler.java