add argument support for `flamegraph`
use getopt and deepcopy args
lint and jsstyle nits