add metrics test
refactor code architecture phase 1
finish refactor
output more when use debug mode in lenz
Merge branch 'refactor' into 'master'

Refactor

如题