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

Commit 563e3a4f authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

Merge "Support sampling PGO profiles"

parents 07c88569 0b993216
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -210,11 +210,6 @@ func (props *PgoProperties) isPGO(ctx BaseModuleContext) bool {
		ctx.ModuleErrorf("PGO specification is missing properties: " + missingProps)
	}

	// Sampling not supported yet
	if isSampling {
		ctx.PropertyErrorf("pgo.sampling", "\"sampling\" is not supported yet)")
	}

	if isSampling && isInstrumentation {
		ctx.PropertyErrorf("pgo", "Exactly one of \"instrumentation\" and \"sampling\" properties must be set")
	}