How do I do profiling and performance assessment with ionic?

There are slight slowdowns on the app I’m working on, so I want to know whats the best way to track performance, resource usage, etc., at least on Android, but if there’s information on how to test on iOS too, I’d love it.

That way, I can find and fix the slower code.