[Offtopic Ionic] Measuring performances?

Do you guys have any tools or code to measure performance?
For example if performance drop to certain level call certain method/function…

I want to measure performance across several android devices after deploying to user and make sure the user device is not hang or crash.

thank you … and sorry a little bit offtopic