Merge "Support sampling PGO profiles" am: 563e3a4f95 am: e8c2eb1f83

Change-Id: I80316b5ca00a50fe7517512adf5417a79d85fa0f
This commit is contained in:
Automerger Merge Worker
2020-01-07 22:29:15 +00:00

View File

@@ -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")
}