Fix unique constraint failed error
Calling `RUN_METRIC('android/power_profile_data.sql')` multiple time
results in "UNIQUE constraint failed". The constrain was added in
https://r.android.com/1423152 to ensure correctness of joins with the
power_profile table.
Use `INSERT OR REPLACE INTO power_profile`, so loading the same data
does not trigger the error.
Bug: 167364259
Test: run-metric android_thread_time_in_state,android_cpu
Change-Id: Ie441039af63d04f0b3d0b99b58dde828662429d6Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.