Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3440d0d4 authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

Merge "Sampling PGO deprecation"

parents a61dbd45 470f76f5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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")
	}