Sampling PGO deprecation
Everything is now switched over to AFDO, let's deprecate sampling PGO. Keep the code around for a little while longer in case anything needs to revert back. Test: presubmit Change-Id: Ibd838bbd0e1157343fcdc2eca40de5b99126fe6f
This commit is contained in:
parent
620dc3f4f9
commit
470f76f589
1 changed files with 4 additions and 0 deletions
|
@ -208,6 +208,10 @@ func (props *PgoProperties) isPGO(ctx BaseModuleContext) bool {
|
|||
ctx.ModuleErrorf("Instrumentation PGO specification is missing benchmark property")
|
||||
}
|
||||
|
||||
if isSampling {
|
||||
ctx.ModuleErrorf("Sampling PGO is deprecated, use AFDO instead")
|
||||
}
|
||||
|
||||
if isSampling && isInstrumentation {
|
||||
ctx.PropertyErrorf("pgo", "Exactly one of \"instrumentation\" and \"sampling\" properties must be set")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue