For native use linux perf with [hperf](https://github.com/foundry2D/hperf) For js use [this](https://github.com/paulirish/automated-chrome-profiling)
For native use linux perf with hperf
For js use this