Merge "Add -fprofile-sample-accurate flag for sampling PGO" am: 56bcaa6dc1 am: 13c665036f

Change-Id: I2d6da001d3f951bd38185b8f6cf2c729145bb9c4
This commit is contained in:
Automerger Merge Worker 2020-01-31 16:58:46 +00:00
commit b700c75aaf

View file

@ -43,7 +43,7 @@ var pgoProfileProjectsConfigKey = android.NewOnceKey("PgoProfileProjects")
const profileInstrumentFlag = "-fprofile-generate=/data/local/tmp"
const profileSamplingFlag = "-gmlt -fdebug-info-for-profiling"
const profileUseInstrumentFormat = "-fprofile-use=%s"
const profileUseSamplingFormat = "-fprofile-sample-use=%s"
const profileUseSamplingFormat = "-fprofile-sample-accurate -fprofile-sample-use=%s"
func getPgoProfileProjects(config android.DeviceConfig) []string {
return config.OnceStringSlice(pgoProfileProjectsConfigKey, func() []string {