Add -fdebug-info-for-profiling flag to emit more debug info for sampling pgo

Test: m
Bug: 79161490
Change-Id: I25cfbf78b27d653286dc7f956743f8855b852b35
This commit is contained in:
Yi Kong
2020-01-30 21:15:12 +08:00
parent 041ac6f2ce
commit 61a1b988fd

View File

@@ -41,7 +41,7 @@ var (
var pgoProfileProjectsConfigKey = android.NewOnceKey("PgoProfileProjects")
const profileInstrumentFlag = "-fprofile-generate=/data/local/tmp"
const profileSamplingFlag = "-gline-tables-only"
const profileSamplingFlag = "-gmlt -fdebug-info-for-profiling"
const profileUseInstrumentFormat = "-fprofile-use=%s"
const profileUseSamplingFormat = "-fprofile-sample-use=%s"